forked from MineClone5/MineClone5
#310 Make tridents do not say 261
This commit is contained in:
parent
0d8c9c8577
commit
da3034cadd
|
@ -62,7 +62,6 @@ local spawn_trident = function(player)
|
||||||
durability = durability * (unbreaking + 1)
|
durability = durability * (unbreaking + 1)
|
||||||
end
|
end
|
||||||
wielditem:add_wear(65535/durability)
|
wielditem:add_wear(65535/durability)
|
||||||
minetest.chat_send_all(wielditem:get_wear())
|
|
||||||
obj:set_velocity(vector.multiply(player:get_look_dir(), 20))
|
obj:set_velocity(vector.multiply(player:get_look_dir(), 20))
|
||||||
obj:set_acceleration({x=0, y=-GRAVITY, z=0})
|
obj:set_acceleration({x=0, y=-GRAVITY, z=0})
|
||||||
obj:set_yaw(yaw)
|
obj:set_yaw(yaw)
|
||||||
|
@ -78,10 +77,10 @@ minetest.register_tool("mcl_tridents:trident", {
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
groups = {weapon=1,weapon_ranged=1,trident=1,enchantability=1},
|
groups = {weapon=1,weapon_ranged=1,trident=1,enchantability=1},
|
||||||
_mcl_uses = TRIDENT_DURABILITY,
|
_mcl_uses = TRIDENT_DURABILITY,
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
spawn_trident(placer)
|
spawn_trident(placer)
|
||||||
end,
|
end,
|
||||||
on_secondary_use = function(itemstack, user, pointed_thing)
|
on_secondary_use = function(itemstack, user, pointed_thing)
|
||||||
spawn_trident(user)
|
spawn_trident(user)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue