From 254ec74625ca711749ccf0c43e5081fb45eb04d4 Mon Sep 17 00:00:00 2001 From: Ombridride Date: Tue, 9 Dec 2014 14:01:36 +0100 Subject: [PATCH] MAJ bee.lua from "mobs" mod (add honey block) --- mods/mobs/bee.lua | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/mods/mobs/bee.lua b/mods/mobs/bee.lua index 787e2e8a..4af87a64 100644 --- a/mods/mobs/bee.lua +++ b/mods/mobs/bee.lua @@ -8,7 +8,11 @@ mobs:register_mob("mobs:bee", { collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2}, visual = "mesh", mesh = "mobs_bee.x", - textures = {"mobs_bee.png"}, + --textures = {"mobs_bee.png"}, + available_textures = { + total = 1, + texture_1 = {"mobs_bee.png"}, + }, makes_footstep_sound = false, walk_velocity = 1, armor = 200, @@ -100,3 +104,25 @@ minetest.register_craft({ {"mobs:bee","mobs:bee","mobs:bee"}, } }) + +-- Honey Block +minetest.register_node("mobs:honey_block", { +description = "Honey Block", +tiles = {"mobs_honey_block.png"}, +groups = {snappy=3,flammable=2}, +sounds = default.node_sound_dirt_defaults(), +}) +minetest.register_craft({ +output = "mobs:honey_block", +recipe = { +{"mobs:honey", "mobs:honey", "mobs:honey"}, +{"mobs:honey", "mobs:honey", "mobs:honey"}, +{"mobs:honey", "mobs:honey", "mobs:honey"}, +} +}) +minetest.register_craft({ +output = "mobs:honey 9", +recipe = { +{"mobs:honey_block"}, +} +}) \ No newline at end of file