commit 190e05928996fbaf92be606da496fd821f917fc8 Author: Desour Date: Thu Nov 14 18:15:55 2024 +0100 Init interesting, punch sound with creative hand is now sometimes cracky, and sometimes oddly hand diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..0abb2c7 --- /dev/null +++ b/init.lua @@ -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 diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..2df32c9 --- /dev/null +++ b/mod.conf @@ -0,0 +1,3 @@ +name = bed_rock +description = Adds a bed-rock, for sleeping +depends = beds, wool, default diff --git a/textures/bed_rock_pillowmask_side_r.png b/textures/bed_rock_pillowmask_side_r.png new file mode 100644 index 0000000..78d2376 Binary files /dev/null and b/textures/bed_rock_pillowmask_side_r.png differ diff --git a/textures/bed_rock_pillowmask_side_top.png b/textures/bed_rock_pillowmask_side_top.png new file mode 100644 index 0000000..d54d4d3 Binary files /dev/null and b/textures/bed_rock_pillowmask_side_top.png differ diff --git a/textures/bed_rock_pillowmask_top.png b/textures/bed_rock_pillowmask_top.png new file mode 100644 index 0000000..79c46db Binary files /dev/null and b/textures/bed_rock_pillowmask_top.png differ