boss sword mock is set

master
Juraj Vajda 2018-01-12 12:59:59 -05:00
parent dae0ffe1be
commit 2b19eae933
2 changed files with 31 additions and 8 deletions

View File

@ -1,2 +1,3 @@
default
tnt?
farming?

View File

@ -24,17 +24,25 @@ minetest.register_tool("obsidianmese:sword", {
-- minetest.register_tool("obsidianmese:sword_balrog_boss", {
-- description = "Balrog Boss Sword",
-- inventory_image = "obsidianmese_sword_balrog_boss.png",
-- wield_scale = {x=2.0, y=2.5, z=1.5},
-- wield_scale = {x=2.2, y=2.7, z=1.7},
-- tool_capabilities = {
-- full_punch_interval = 3,
-- full_punch_interval = 2,
-- max_drop_level=1,
-- groupcaps={
-- snappy={times={[1]=3.80, [2]=1.80, [3]=0.60}, uses=20, maxlevel=3},
-- },
-- -- wield_scale = {x=2.5, y=3, z=2},
-- damage_groups = {fleshy=200},
-- sound = {breaks = "default_tool_breaks"},
-- }
-- snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=20, maxlevel=3},
-- }
-- },
-- damage_groups = {fleshy=10},
-- sound = {breaks = "default_tool_breaks"},
-- on_use = function(itemstack, user, pointed_thing)
-- print("on_use")
-- print(dump(pointed_thing))
-- end,
-- after_use = function(itemstack, user, node, digparams)
-- print("after_use")
-- itemstack:add_wear(digparams.wear)
-- return itemstack
-- end
-- })
-- sword engraved - bullet entity
@ -114,6 +122,20 @@ minetest.register_entity("obsidianmese:sword_bullet", {
and minetest.registered_nodes[node.name].walkable then
self.object:remove()
obsidianmese.sync_fired_table(self._owner)
-- dont damage anything if area protected or next to water
-- if minetest.find_node_near(pos, 1, {"group:water"})
-- or minetest.is_protected(pos, "") then
-- return
-- end
-- tnt.boom(pos, {
-- radius = 3,
-- damage_radius = 6,
-- ignore_protection = false,
-- ignore_on_blast = false,
-- disable_drops = false
-- })
return
end