interesting, punch sound with creative hand is now sometimes cracky, and sometimes oddly hand
This commit is contained in:
Desour 2024-11-14 18:15:55 +01:00
commit 190e059289
5 changed files with 55 additions and 0 deletions

52
init.lua Normal file
View File

@ -0,0 +1,52 @@
beds.register_bed("bed_rock:bed_rock", {
description = "Bed-Rock",
inventory_image = "beds_bed.png", --TODO
wield_image = "beds_bed.png", --TODO
sounds = default.node_sound_stone_defaults(),
tiles = {
bottom = {
"default_stone.png",
"default_stone.png",
"default_stone.png",
"default_stone.png",
"beds_transparent.png",
"default_stone.png"
},
top = {
"default_stone.png^(beds_bed_top_top.png^[mask:bed_rock_pillowmask_top.png^[transformR90)",
"default_stone.png",
"default_stone.png^(beds_bed_side_top_r.png^[mask:bed_rock_pillowmask_side_r.png)",
"default_stone.png^(beds_bed_side_top_r.png^[mask:bed_rock_pillowmask_side_r.png^[transformfx)",
"default_stone.png^(beds_bed_side_top.png^[mask:bed_rock_pillowmask_side_top.png)",
"beds_bed_side_top.png^[mask:bed_rock_pillowmask_side_top.png^[transformfx",
},
},
nodebox = {
bottom = {-0.5, -0.5, -0.5, 0.5, -3/16, 0.5},
top = {
{-0.5, -0.5, -0.5, 0.5, -3/16, 0.5},
{-7/16, -3/16, 0, 7/16, 1/16, 7/16},
},
},
selectionbox = {
{-0.5, -0.5, -0.5, 0.5, -3/16, 1.5},
{-7/16, -3/16, 1, 7/16, 1/16, 7/16+1},
},
recipe = {
{"group:wool", "", ""},
{"default:stone", "default:stone", "default:stone"}
}
})
core.override_item("bed_rock:bed_rock_bottom", {
groups = {cracky = 3, oddly_breakable_by_hand = 2, bed = 1},
})
core.override_item("bed_rock:bed_rock_top", {
groups = {cracky = 3, oddly_breakable_by_hand = 2, bed = 2,
not_in_creative_inventory = 1},
})
-- TODO: hurt
-- TODO: player animation lower, and/or diagonal

3
mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = bed_rock
description = Adds a bed-rock, for sleeping
depends = beds, wool, default

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B