Add inner nodeboxes for banner nodes

This commit is contained in:
Wuzzy 2018-05-13 01:52:38 +02:00
parent 91fad8072d
commit bf37c06de4
3 changed files with 21 additions and 4 deletions

View File

@ -117,10 +117,20 @@ minetest.register_node("mcl_banners:standing_banner", {
is_ground_content = false,
paramtype = "light",
sunlight_propagates = true,
drawtype = "airlike",
drawtype = "nodebox",
-- Nodebox is drawn as fallback when the entity is missing, so that the
-- banner node is never truly invisible.
-- If the entity is drawn, the nodebox disappears within the real banner mesh.
node_box = {
type = "fixed",
fixed = { -1/32, -0.49, -1/32, 1/32, 1.49, 1/32 },
},
-- This texture is based on the banner base texture
tiles = { "mcl_banners_fallback_wood.png" },
inventory_image = "mcl_banners_item_base.png",
wield_image = "mcl_banners_item_base.png",
tiles = { "blank.png" },
selection_box = {type = "fixed", fixed= {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} },
groups = {axey=1,handy=1, attached_node = 1, not_in_creative_inventory = 1, not_in_craft_guide = 1, material_wood=1 },
stack_max = 16,
@ -139,10 +149,16 @@ minetest.register_node("mcl_banners:hanging_banner", {
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
drawtype = "airlike",
drawtype = "nodebox",
inventory_image = "mcl_banners_item_base.png",
wield_image = "mcl_banners_item_base.png",
tiles = { "blank.png" },
tiles = { "mcl_banners_fallback_wood.png" },
node_box = {
type = "wallmounted",
wall_side = { -0.49, 0.41, -0.49, -0.41, 0.49, 0.49 },
wall_top = { -0.49, 0.41, -0.49, -0.41, 0.49, 0.49 },
wall_bottom = { -0.49, -0.49, -0.49, -0.41, -0.41, 0.49 },
},
selection_box = {type = "wallmounted", wall_side = {-0.5, -0.5, -0.5, -4/16, 0.5, 0.5} },
groups = {axey=1,handy=1, attached_node = 1, not_in_creative_inventory = 1, not_in_craft_guide = 1, material_wood=1 },
stack_max = 16,

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 B

View File

@ -871,6 +871,7 @@ Source path,Source file,Target path,Target file,xs,ys,xl,yl,xt,yt,Blacklisted?
/assets/minecraft/textures/entity,sign.png,/mods/ITEMS/mcl_signs/textures,mcl_signs_sign.png,,,,,,,
/assets/minecraft/textures/entity,banner_base.png,/mods/ITEMS/mcl_banners/textures,mcl_banners_banner_base.png,,,,,,,
/assets/minecraft/textures/entity/banner,base.png,/mods/ITEMS/mcl_banners/textures,mcl_banners_base.png,,,,,,,
/assets/minecraft/textures/blocks,planks_oak.png,/mods/ITEMS/mcl_banners/textures,mcl_banners_fallback_wood.png,,,,,,,
/assets/minecraft/textures/items,banner_base.png,/mods/ITEMS/mcl_banners/textures,mcl_banners_item_base.png,,,,,,,
/assets/minecraft/textures/items,banner_overlay.png,/mods/ITEMS/mcl_banners/textures,mcl_banners_item_overlay.png,,,,,,,
/assets/minecraft/textures/blocks,portal.png,/mods/ITEMS/mcl_portals/textures,mcl_portals_portal.png,,,,,,,

1 Source path Source file Target path Target file xs ys xl yl xt yt Blacklisted?
871 /assets/minecraft/textures/entity sign.png /mods/ITEMS/mcl_signs/textures mcl_signs_sign.png
872 /assets/minecraft/textures/entity banner_base.png /mods/ITEMS/mcl_banners/textures mcl_banners_banner_base.png
873 /assets/minecraft/textures/entity/banner base.png /mods/ITEMS/mcl_banners/textures mcl_banners_base.png
874 /assets/minecraft/textures/blocks planks_oak.png /mods/ITEMS/mcl_banners/textures mcl_banners_fallback_wood.png
875 /assets/minecraft/textures/items banner_base.png /mods/ITEMS/mcl_banners/textures mcl_banners_item_base.png
876 /assets/minecraft/textures/items banner_overlay.png /mods/ITEMS/mcl_banners/textures mcl_banners_item_overlay.png
877 /assets/minecraft/textures/blocks portal.png /mods/ITEMS/mcl_portals/textures mcl_portals_portal.png