mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-25 17:30:19 +01:00
add lavalamp
This commit is contained in:
parent
0a1360eb39
commit
a5555323fd
@ -1,20 +0,0 @@
|
|||||||
unused_args = false
|
|
||||||
allow_defined_top = true
|
|
||||||
max_comment_line_length = 999
|
|
||||||
|
|
||||||
read_globals = {
|
|
||||||
"DIR_DELIM",
|
|
||||||
"minetest", "core",
|
|
||||||
"unpack",
|
|
||||||
"dump",
|
|
||||||
table = { fields = { "copy", "getn" } },
|
|
||||||
"vector", "nodeupdate",
|
|
||||||
"VoxelManip", "VoxelArea",
|
|
||||||
"PseudoRandom", "ItemStack",
|
|
||||||
"default",
|
|
||||||
"unifieddyes",
|
|
||||||
}
|
|
||||||
|
|
||||||
globals = {
|
|
||||||
}
|
|
||||||
|
|
@ -35,7 +35,9 @@ minetest.register_node("lavalamp:lavalamp", {
|
|||||||
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
|
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
|
||||||
},
|
},
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
_sound_def = {
|
||||||
|
key = "node_sound_glass_defaults",
|
||||||
|
},
|
||||||
on_construct = unifieddyes.on_construct,
|
on_construct = unifieddyes.on_construct,
|
||||||
on_dig = unifieddyes.on_dig,
|
on_dig = unifieddyes.on_dig,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
@ -63,7 +65,9 @@ minetest.register_node("lavalamp:lavalamp_off", {
|
|||||||
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
|
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
|
||||||
},
|
},
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
_sound_def = {
|
||||||
|
key = "node_sound_glass_defaults",
|
||||||
|
},
|
||||||
on_construct = unifieddyes.on_construct,
|
on_construct = unifieddyes.on_construct,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
node.name = "lavalamp:lavalamp"
|
node.name = "lavalamp:lavalamp"
|
||||||
@ -80,9 +84,9 @@ minetest.register_node("lavalamp:lavalamp_off", {
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "lavalamp:lavalamp",
|
output = "lavalamp:lavalamp",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "wool:white", "", },
|
{"", homedecor.materials.wool_white, "", },
|
||||||
{"", "bucket:bucket_water", "", },
|
{"", homedecor.materials.water_bucket, "", },
|
||||||
{"", "wool:black", "", }
|
{"", homedecor.materials.wool_black, "", }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
name = lavalamp
|
name = lavalamp
|
||||||
depends = wool, bucket, homedecor_common, unifieddyes
|
depends = homedecor_common
|
||||||
|
optional_depends = wool, bucket, unifieddyes
|
||||||
|
Loading…
Reference in New Issue
Block a user