add "torch blossom" tools for admins or creative users to scatter torches around more easily
This commit is contained in:
parent
d0b4d8f769
commit
ab31d78abd
34
init.lua
34
init.lua
@ -864,3 +864,37 @@ if enable_tnt and tnt_modpath then
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
-- Admin/creative tools
|
||||
|
||||
minetest.register_craftitem("torch_bomb:torch_blossom_1", {
|
||||
description = S("Small Torch Blossom"),
|
||||
inventory_image = "torch_bomb_torch_grenade.png^[multiply:#CCCC33^torch_bomb_blossom.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local player_pos = user:get_pos()
|
||||
kerblam(player_pos, user, ico1, 2)
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem("torch_bomb:torch_blossom_2", {
|
||||
description = S("Torch Blossom"),
|
||||
inventory_image = "torch_bomb_torch_grenade.png^[multiply:#CC8033^torch_bomb_blossom.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local player_pos = user:get_pos()
|
||||
kerblam(player_pos, user, ico2, 5)
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem("torch_bomb:torch_blossom_3", {
|
||||
description = S("Mega Torch Blossom"),
|
||||
inventory_image = "torch_bomb_torch_grenade.png^[multiply:#CC3333^torch_bomb_blossom.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local player_pos = user:get_pos()
|
||||
kerblam(player_pos, user, ico3, 15)
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
@1 Torch Crossbow=
|
||||
#material the crossbow is made out of
|
||||
Bronze=
|
||||
Mega Torch Blossom=
|
||||
Mega Torch Bomb=
|
||||
|
||||
#help text in the fuse setting window
|
||||
@ -16,8 +17,10 @@ Rocket accelerates at 1 m/s^2.@nFuse duration from 1 to @1 seconds:=
|
||||
|
||||
#button label
|
||||
Set=
|
||||
Small Torch Blossom=
|
||||
#material the crossbow is made out of
|
||||
Steel=
|
||||
Torch Blossom=
|
||||
Torch Bomb=
|
||||
Torch Grenade=
|
||||
#material the crossbow is made out of
|
||||
|
BIN
textures/torch_bomb_blossom.png
Normal file
BIN
textures/torch_bomb_blossom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 281 B |
Loading…
x
Reference in New Issue
Block a user