item_image_button[]
I'm trying to use item image buttons on a formspec, but it isn't working. There's no error, but there's also no image button. I'm using this format: "item_image_button[0,0;1,1;default:dirt;<name>;<label>]".
Am I doing this the wrong way, or is it an error in the game / API documentation?
I'm currently using a workaround involving image_button[] and minetest.inventorycube(), but it doesn't work well for stairs and slabs, because they are non-cubes. If I'm just doing it wrong, or it's an error in the documentation, what is the right way to add buttons representing items?
Thank you!
Am I doing this the wrong way, or is it an error in the game / API documentation?
I'm currently using a workaround involving image_button[] and minetest.inventorycube(), but it doesn't work well for stairs and slabs, because they are non-cubes. If I'm just doing it wrong, or it's an error in the documentation, what is the right way to add buttons representing items?
Thank you!