diff --git a/crafts.lua b/crafts.lua index 32dd745..aa8edca 100644 --- a/crafts.lua +++ b/crafts.lua @@ -358,7 +358,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end) --- Meat Block (thanks to painterlypack.net for allowing me to use these textures) +-- Meat Block minetest.register_node("mobs:meatblock", { description = S("Meat Block"), tiles = {"mobs_meat_top.png", "mobs_meat_bottom.png", "mobs_meat_side.png"}, @@ -377,3 +377,30 @@ minetest.register_craft({ {"group:food_meat", "group:food_meat", "group:food_meat"} } }) + +-- Meat Block (raw) +minetest.register_node("mobs:meatblock_raw", { + description = S("Raw Meat Block"), + tiles = {"mobs_meat_raw_top.png", "mobs_meat_raw_bottom.png", "mobs_meat_raw_side.png"}, + paramtype2 = "facedir", + groups = {choppy = 1, oddly_breakable_by_hand = 1, flammable = 2}, + sounds = mod_def and default.node_sound_leaves_defaults(), + on_place = minetest.rotate_node, + on_use = minetest.item_eat(20) +}) + +minetest.register_craft({ + output = "mobs:meatblock_raw", + recipe = { + {"group:food_meat_raw", "group:food_meat_raw", "group:food_meat_raw"}, + {"group:food_meat_raw", "group:food_meat_raw", "group:food_meat_raw"}, + {"group:food_meat_raw", "group:food_meat_raw", "group:food_meat_raw"} + } +}) + +minetest.register_craft({ + type = "cooking", + output = "mobs:meatblock", + recipe = "mobs:meatblock_raw", + cooktime = 30 +}) diff --git a/license.txt b/license.txt index fec6f6a..a0a2105 100644 --- a/license.txt +++ b/license.txt @@ -19,3 +19,6 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Textures under CC0 license by TenPlus1 diff --git a/textures/mobs_meat_bottom.png b/textures/mobs_meat_bottom.png index 351c16f..559e6e3 100644 Binary files a/textures/mobs_meat_bottom.png and b/textures/mobs_meat_bottom.png differ diff --git a/textures/mobs_meat_raw_bottom.png b/textures/mobs_meat_raw_bottom.png new file mode 100644 index 0000000..e6ef6c5 Binary files /dev/null and b/textures/mobs_meat_raw_bottom.png differ diff --git a/textures/mobs_meat_raw_side.png b/textures/mobs_meat_raw_side.png new file mode 100644 index 0000000..4ba1ed0 Binary files /dev/null and b/textures/mobs_meat_raw_side.png differ diff --git a/textures/mobs_meat_raw_top.png b/textures/mobs_meat_raw_top.png new file mode 100644 index 0000000..1dcc6d9 Binary files /dev/null and b/textures/mobs_meat_raw_top.png differ diff --git a/textures/mobs_meat_side.png b/textures/mobs_meat_side.png index 10dac08..4a3da50 100644 Binary files a/textures/mobs_meat_side.png and b/textures/mobs_meat_side.png differ diff --git a/textures/mobs_meat_top.png b/textures/mobs_meat_top.png index 0058e6a..14116b4 100644 Binary files a/textures/mobs_meat_top.png and b/textures/mobs_meat_top.png differ