1
0
Fork 0

Clean up hopper names and creative

This commit is contained in:
Wuzzy 2017-01-17 17:56:18 +01:00
parent e7a2a70bca
commit 570d867157
2 changed files with 7 additions and 4 deletions

1
mods/hopper/depends.txt Normal file
View File

@ -0,0 +1 @@
default

View File

@ -14,8 +14,8 @@ local chest_formspec =
minetest.register_node("hopper:hopper", {
drop = "hopper:hopper_item",
description = "I think you broke something",
groups = {cracky=1,level=2},
description = "Hopper (Node)",
groups = {cracky=1,level=2,not_in_creative_inventory=1},
drawtype = "nodebox",
paramtype = "light",
tiles = {"default_coal_block.png"},
@ -60,12 +60,13 @@ minetest.register_node("hopper:hopper", {
minetest.log("action", player:get_player_name()..
" takes stuff from hopper at "..minetest.pos_to_string(pos))
end,
sounds = default.node_sound_metal_defaults(),
})
minetest.register_node("hopper:hopper_side", {
description = "I think you broke something",
description = "Hopper (Side)",
drop = "hopper:hopper_item",
groups = {cracky=1,level=2},
groups = {cracky=1,level=2,not_in_creative_inventory=1},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
@ -111,6 +112,7 @@ minetest.register_node("hopper:hopper_side", {
minetest.log("action", player:get_player_name()..
" takes stuff from hopper at "..minetest.pos_to_string(pos))
end,
sounds = default.node_sound_metal_defaults(),
})
--make hoppers suck in blocks
minetest.register_abm({