Mod rename: trash_can → hades_trash
parent
84d238cdae
commit
46ec9aea7e
|
@ -8,12 +8,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
This mod adds a wooden trash can. Right click it, put in your trash, and click the empty trash button.
|
This mod adds a plastic trash can. Right click it, put in your trash, and click the empty trash button.
|
||||||
You can also throw things in the trash can by pressing "q" or throwing them out of your inventory.
|
You can also throw things in the trash can by pressing "q" or throwing them out of your inventory.
|
||||||
|
|
||||||
|
|
||||||
Dependencies: Default
|
|
||||||
|
|
||||||
License: CC BY-SA 3.0
|
License: CC BY-SA 3.0
|
||||||
|
|
||||||
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
|
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
|
|
@ -1,11 +1,10 @@
|
||||||
local S = minetest.get_translator("trash_can")
|
local S = minetest.get_translator("hades_trash")
|
||||||
local F = minetest.formspec_escape
|
local F = minetest.formspec_escape
|
||||||
|
|
||||||
--Node Registration
|
--Node registration
|
||||||
local player_name = {}
|
minetest.register_node("hades_trash:trash_can_plastic",{
|
||||||
minetest.register_node("trash_can:trash_can_wooden",{
|
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
|
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
|
||||||
tiles = {"trash_can_wooden_top.png", "trash_can_wooden_top.png", "trash_can_wooden.png"},
|
tiles = {"hades_trash_trash_can_plastic_top.png", "hades_trash_trash_can_plastic_top.png", "hades_trash_trash_can_plastic.png"},
|
||||||
description = S("Trash Can"),
|
description = S("Trash Can"),
|
||||||
_tt_help = S("Lets you get rid of trash"),
|
_tt_help = S("Lets you get rid of trash"),
|
||||||
drawtype="nodebox",
|
drawtype="nodebox",
|
||||||
|
@ -29,7 +28,7 @@ minetest.register_node("trash_can:trash_can_wooden",{
|
||||||
"list[current_name;main;3,1;2,3;]"..
|
"list[current_name;main;3,1;2,3;]"..
|
||||||
"list[current_player;main;0,5;8,4;]"..
|
"list[current_player;main;0,5;8,4;]"..
|
||||||
"listring[]"..
|
"listring[]"..
|
||||||
"background9[18,17;8,9;trash_can_inventory.png;true;18,17,-22,-17]")
|
"background9[18,17;8,9;hades_trash_trash_can_inventory.png;true;18,17,-22,-17]")
|
||||||
meta:set_string("infotext", S("Trash Can"))
|
meta:set_string("infotext", S("Trash Can"))
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("main", 8*4)
|
inv:set_size("main", 8*4)
|
||||||
|
@ -55,7 +54,7 @@ minetest.register_node("trash_can:trash_can_wooden",{
|
||||||
inv:set_stack("main", i, nil)
|
inv:set_stack("main", i, nil)
|
||||||
end
|
end
|
||||||
local player_name = sender:get_player_name()
|
local player_name = sender:get_player_name()
|
||||||
minetest.sound_play("trash", {to_player=player_name, gain = 1.0}, false)
|
minetest.sound_play("hades_trash_empty", {to_player=player_name, gain = 1.0}, true)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
sounds = hades_sounds.node_sound_defaults(),
|
sounds = hades_sounds.node_sound_defaults(),
|
||||||
|
@ -64,7 +63,7 @@ minetest.register_node("trash_can:trash_can_wooden",{
|
||||||
--Crafting
|
--Crafting
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'trash_can:trash_can_wooden',
|
output = 'hades_trash:trash_can_plastic',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'hades_materials:plastic_base', '', 'hades_materials:plastic_base'},
|
{'hades_materials:plastic_base', '', 'hades_materials:plastic_base'},
|
||||||
{'hades_materials:plastic_base', '', 'hades_materials:plastic_base'},
|
{'hades_materials:plastic_base', '', 'hades_materials:plastic_base'},
|
|
@ -1,2 +1,2 @@
|
||||||
name = trash_can
|
name = hades_trash
|
||||||
depends = hades_sounds
|
depends = hades_sounds
|
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 169 KiB |
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 245 B |
Loading…
Reference in New Issue