minetest.inventorycube(img1, img2, img3)
^ Returns a string for making an image of a cube (useful as an item image)
Casimir wrote:minetest.inventorycube(img1, img2, img3)
^ Returns a string for making an image of a cube (useful as an item image)
https://github.com/minetest/minetest/bl ... .txt#L1477
webdesigner97 wrote:Casimir wrote:minetest.inventorycube(img1, img2, img3)
^ Returns a string for making an image of a cube (useful as an item image)
https://github.com/minetest/minetest/bl ... .txt#L1477
Which only works for drawtype "normal" AFAIK. Nodeboxes and other drawtypes won't work.
MirceaKitsune wrote:Another thing this would allow are picture frames that you can put items on, similar to those Minecraft recently added. A photo frame can be placed on a wall, then right-clicking it with any item in your hand causes the photo to turn into the inventory preview of that item.
Sokomine wrote:There is an itemframe mod that places entities into a frame. It can be seen in action on VanessaEs servers.
Formspec menus can display inventory images as well. They are not limited to inventory slots. Are you looking for those kind of images?
Regarding textures, it would be great to be able to change a texture to a new one upon a server command. That way, changing seasons like in the 4seasons mod would be a lot easier to handle for the server. Instead of having to change each single dirt and leaf node, it could just tell the client to apply another texture to that node.
MirceaKitsune wrote:And yes, I'd like to know how formspecs can display the item icons outside of inventory slots, as images for instance. My curiosity otherwise is if a mesh material (player / Lua entity) can be textured to use it, for things like wielditem support.
MirceaKitsune wrote:[EDIT] Not surprisingly, the Item Frames mod uses a Lua entity of type "wielditem", which I already know about and doesn't involve using the inventory image. So it doesn't tell me anything, although it's a cool mod otherwise!
Sokomine wrote:In formspecs, item_image[..] and item_image_button[..] display such an image. Those formspec functions get the item name as a parameter. Making those images available elsewhere sounds like what you're looking for.
prestidigitator wrote:I started the texture wiki page after inspecting some of the source code. I THINK the syntax can be used anywhere you can specify a texture, but I can't remember for sure now.
webdesigner97 wrote:"^" is not an ampersand. This is an ampersand: &
prestidigitator wrote:webdesigner97 wrote:"^" is not an ampersand. This is an ampersand: &
Right you are. Good catch. Fixed in the wiki ("caret").
Users browsing this forum: No registered users and 6 guests