Add blocks for apple, golden apple, ench. gapple

This commit is contained in:
Blockhead 2022-04-09 18:13:51 +10:00
parent e96e603097
commit f94ec57912
3 changed files with 24 additions and 1 deletions

View File

@ -15,10 +15,33 @@ local extra_node_def = {
}
_foodblocks.node_groups = minetest.registered_nodes["mcl_farming:melon"].groups
local gold_apple_textures = {
'(apple_cube.png^[sheet:1x3:0,0^[colorize:yellow:90^apple_top_overlay.png)', -- top
'(apple_cube.png^[sheet:1x3:0,2^[colorize:yellow:90^apple_bottom_overlay.png)', -- bottom
'(apple_cube.png^[sheet:1x3:0,1^[colorize:yellow:90)',
'(apple_cube.png^[sheet:1x3:0,1^[colorize:yellow:90)',
'(apple_cube.png^[sheet:1x3:0,1^[colorize:yellow:90)',
'(apple_cube.png^[sheet:1x3:0,1^[colorize:yellow:90)',
},
regfoodblock("apple", "Apple", "mcl_core:apple", nil, extra_node_def)
regfoodblock("apple_gold", "Golden Apple", "mcl_core:apple_gold",
gold_apple_textures, extra_node_def)
-- Yes, the purple is deliberately applied over the overlay textures; it's part
-- of the 'enchanted' look.
local gold_apple_textures_ench = {}
for k,v in pairs(gold_apple_textures) do
gold_apple_textures_ench[k] = gold_apple_textures[k] .. "^[colorize:#9137bb30:"
end
regfoodblock("apple_gold_enchanted", "Enchanted Golden Apple",
"mcl_core:apple_gold_enchanted", gold_apple_textures_ench, nil,
extra_node_def)
regfoodblock("beetroot", "Beetroot", "mcl_farming:beetroot_item", nil,
extra_node_def)
regfoodblock("carrot", "Carrot", "mcl_farming:carrot_item", nil, extra_node_def)
regfoodblock("potato", "Potato", "mcl_farming:potato_item", {"potato_cube.png"},
extra_node_def)
regfoodblock("potato_green", "Poison Potato", "mcl_farming:potato_item_poison",
{"potato_cube_green.png"})
{"potato_cube_green.png"}, extra_node_def)

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B