mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-11-24 07:13:44 +01:00
Fixed groups and black sign drop item
This commit is contained in:
parent
926242a585
commit
63c1499500
@ -142,7 +142,7 @@ function signs.register_sign(mod, name, model)
|
|||||||
wall_top = {-model.width/2, 0.5, -model.height/2,
|
wall_top = {-model.width/2, 0.5, -model.height/2,
|
||||||
model.width/2, 0.5 - model.depth, model.height/2},
|
model.width/2, 0.5 - model.depth, model.height/2},
|
||||||
},
|
},
|
||||||
groups = {choppy=2,dig_immediate=2,attached_node=1},
|
groups = {choppy=2, dig_immediate=2, attached_node=1},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
display_entities = {
|
display_entities = {
|
||||||
["signs:text"] = {
|
["signs:text"] = {
|
||||||
@ -165,7 +165,13 @@ function signs.register_sign(mod, name, model)
|
|||||||
|
|
||||||
-- Node fields override
|
-- Node fields override
|
||||||
for key, value in pairs(model.node_fields) do
|
for key, value in pairs(model.node_fields) do
|
||||||
fields[key] = value
|
if key == "groups" then
|
||||||
|
for key2, value2 in pairs(value) do
|
||||||
|
fields[key][key2] = value2
|
||||||
|
end
|
||||||
|
else
|
||||||
|
fields[key] = value
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not fields.wield_image then fields.wield_image = fields.inventory_image end
|
if not fields.wield_image then fields.wield_image = fields.inventory_image end
|
||||||
|
@ -118,7 +118,7 @@ local models = {
|
|||||||
wall_side = {-0.5, -7/32, -0.5, -7/16, 7/32, 7/16},
|
wall_side = {-0.5, -7/32, -0.5, -7/16, 7/32, 7/16},
|
||||||
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5},
|
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5},
|
||||||
wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}},
|
wall_top = {-0.5, 0.5, -0.5, 0.5, 7/16, 0.5}},
|
||||||
groups={choppy=1,oddly_breakable_by_hand=1,not_in_creative_inventory=1},
|
groups={not_in_creative_inventory=1},
|
||||||
drop="signs:wooden_right",
|
drop="signs:wooden_right",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -64,7 +64,7 @@ local models = {
|
|||||||
tiles={"signs_black_right.png"},
|
tiles={"signs_black_right.png"},
|
||||||
inventory_image="signs_black_inventory.png",
|
inventory_image="signs_black_inventory.png",
|
||||||
on_place=signs.on_place_direction,
|
on_place=signs.on_place_direction,
|
||||||
on_rightclick=signs.on_right_click_direction,
|
on_rightclick=signs.on_right_click_direction,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
black_left={
|
black_left={
|
||||||
@ -80,10 +80,10 @@ local models = {
|
|||||||
description="Black direction sign",
|
description="Black direction sign",
|
||||||
tiles={"signs_black_left.png"},
|
tiles={"signs_black_left.png"},
|
||||||
inventory_image="signs_black_inventory.png",
|
inventory_image="signs_black_inventory.png",
|
||||||
groups={choppy=1,oddly_breakable_by_hand=1,not_in_creative_inventory=1},
|
groups={not_in_creative_inventory=1},
|
||||||
drop="signs:black_right",
|
drop="signs_road:black_right",
|
||||||
on_place=signs.on_place_direction,
|
on_place=signs.on_place_direction,
|
||||||
on_rightclick=signs.on_right_click_direction,
|
on_rightclick=signs.on_right_click_direction,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user