Add seagrass item texture

This commit is contained in:
FossFanatic 2022-12-08 17:37:14 +00:00
parent ef33891b3f
commit adead97905

View file

@ -82,8 +82,8 @@ minetest.register_craftitem("mcl_ocean:seagrass", {
description = S("Seagrass"), description = S("Seagrass"),
_tt_help = S("Grows in water on dirt, sand, gravel"), _tt_help = S("Grows in water on dirt, sand, gravel"),
_doc_items_create_entry = false, _doc_items_create_entry = false,
inventory_image = "mcl_ocean_seagrass.png^[verticalframe:12:0", inventory_image = "mcl_ocean_seagrass_item.png",
wield_image = "mcl_ocean_seagrass.png^[verticalframe:12:0", wield_image = "mcl_ocean_seagrass_item.png",
on_place = seagrass_on_place, on_place = seagrass_on_place,
groups = {deco_block = 1, compostability = 30}, groups = {deco_block = 1, compostability = 30},
}) })
@ -106,7 +106,7 @@ for s=1, #surfaces do
doc_longdesc = S("Seagrass grows inside water on top of dirt, sand or gravel.") doc_longdesc = S("Seagrass grows inside water on top of dirt, sand or gravel.")
desc = S("Seagrass") desc = S("Seagrass")
doc_create = true doc_create = true
doc_img = "mcl_ocean_seagrass.png^[verticalframe:12:0" doc_img = "mcl_ocean_seagrass_item.png"
else else
doc_create = false doc_create = false
end end
@ -126,8 +126,8 @@ for s=1, #surfaces do
animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=1.0}, animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length=1.0},
} }
}, },
inventory_image = "("..def.tiles[1]..")^(mcl_ocean_seagrass.png^[verticalframe:12:0)", inventory_image = "mcl_ocean_seagrass_item.png",
wield_image = "mcl_ocean_seagrass.png^[verticalframe:12:0", wield_image = "mcl_ocean_seagrass_item.png",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {