mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Fix snow golems throwing no snowballs
This commit is contained in:
parent
bc7c88ee69
commit
269b7f0278
1 changed files with 34 additions and 32 deletions
|
@ -300,11 +300,12 @@ if c("egg") then
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
if c("snowball") then
|
-- Snowball
|
||||||
local snowball_GRAVITY = 9
|
|
||||||
local snowball_VELOCITY = 19
|
|
||||||
|
|
||||||
mobs:register_arrow("mobs_mc:snowball_entity", {
|
local snowball_GRAVITY = 9
|
||||||
|
local snowball_VELOCITY = 19
|
||||||
|
|
||||||
|
mobs:register_arrow("mobs_mc:snowball_entity", {
|
||||||
visual = "sprite",
|
visual = "sprite",
|
||||||
visual_size = {x=.5, y=.5},
|
visual_size = {x=.5, y=.5},
|
||||||
textures = {"mcl_throwing_snowball.png"},
|
textures = {"mcl_throwing_snowball.png"},
|
||||||
|
@ -331,8 +332,9 @@ if c("snowball") then
|
||||||
}, nil)
|
}, nil)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if c("snowball") then
|
||||||
-- shoot snowball
|
-- shoot snowball
|
||||||
local mobs_shoot_snowball = function (item, player, pointed_thing)
|
local mobs_shoot_snowball = function (item, player, pointed_thing)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue