Item inside of a block
- Gaming Association
- Member
- Posts: 62
- Joined: Tue Aug 18, 2015 01:52
- GitHub: Gerold55
- In-game: Gerold55
Item inside of a block
How would u code an item laying down inside of a block? So when it's placing inside in the GUI/inventory when u back out the item/block is laying down?
- Attachments
-
- Screenshot (23).png (429.26 KiB) Viewed 753 times
-
- Screenshot (22).png (316.12 KiB) Viewed 753 times
Last edited by Gaming Association on Thu Sep 24, 2015 03:06, edited 1 time in total.
Gaming Association
Re: Item inside of a block
You may have gotten lost in translation. Please rephrase.
Trying to stay me.
- Gaming Association
- Member
- Posts: 62
- Joined: Tue Aug 18, 2015 01:52
- GitHub: Gerold55
- In-game: Gerold55
Re: Item inside of a block
These 2 pictures should help this is what im talking about this is what we need help on
- Attachments
-
- Screenshot (23).png (429.26 KiB) Viewed 753 times
-
- Screenshot (22).png (316.12 KiB) Viewed 753 times
Gaming Association
Re: Item inside of a block
xdecor has an "itemframe" that displays an item inside by adding an entity that uses a "wielditem" visual and has the item image as texture:
https://github.com/kilbith/xdecor/blob/ ... mframe.lua
I guess if your node is transparent, any entities inside will be displayed. Thought you would have to add/remove/update each entity every time the inventory changes.
https://github.com/kilbith/xdecor/blob/ ... mframe.lua
I guess if your node is transparent, any entities inside will be displayed. Thought you would have to add/remove/update each entity every time the inventory changes.
- programmingchicken
- Member
- Posts: 540
- Joined: Sat Apr 18, 2015 02:20
- GitHub: pchicken
- IRC: chicken pchicken
- Location: not here
- Contact:
Re: Item inside of a block
I have thought about this for a bit but could only think of making a separate node for each item. If that item is placed in the oven then it would set the right nose. This would be similar to what the furnace does to get the flames when cooking.
Edit- programmingchicken - forget the begal and go straight for the good stuff. Coffee and doughnuts. Yummy......... Doughnuts
Edit- programmingchicken - forget the begal and go straight for the good stuff. Coffee and doughnuts. Yummy......... Doughnuts
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!
A list of my mods can be found here
A list of my mods can be found here
- Gaming Association
- Member
- Posts: 62
- Joined: Tue Aug 18, 2015 01:52
- GitHub: Gerold55
- In-game: Gerold55
Re: Item inside of a block
But then my mod that someone is helping me make would be huge I need it as small as possible
Gaming Association
Re: Item inside of a block
Then you are better off going with the same idea as item frames. The problem with that is you will get the spinning item like a dropped item.Gaming Association wrote:But then my mod that someone is helping me make would be huge I need it as small as possible
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!
A list of my mods can be found here
A list of my mods can be found here
- Gaming Association
- Member
- Posts: 62
- Joined: Tue Aug 18, 2015 01:52
- GitHub: Gerold55
- In-game: Gerold55
Re: Item inside of a block
Not that I know of. Maybe someone else has something better to say.
Edit - can you post a link to the mod that the pics are from?
Edit - can you post a link to the mod that the pics are from?
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!
A list of my mods can be found here
A list of my mods can be found here
Re: Item inside of a block
The items don't spin when they are displayed in the itemframe. It's added as a custom entity, not as an item entity. It starts being invisible ("air") and then the texture changes when the block is right clicked. You also have control on how big you want it to be.
- Gaming Association
- Member
- Posts: 62
- Joined: Tue Aug 18, 2015 01:52
- GitHub: Gerold55
- In-game: Gerold55
Re: Item inside of a block
I have not seen this version of itemframes. I will have to check it out. The last time I used itemframes they spun.Ferk wrote:The items don't spin when they are displayed in the itemframe. It's added as a custom entity, not as an item entity. It starts being invisible ("air") and then the texture changes when the block is right clicked. You also have control on how big you want it to be.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!
A list of my mods can be found here
A list of my mods can be found here
Re: Item inside of a block
It's from xdecor, I haven't seen much the other implementations.
It has quickly become one of my favorite mods for basic decorative elements, homedecor is a bit too much for me.
It has quickly become one of my favorite mods for basic decorative elements, homedecor is a bit too much for me.
Re: Item inside of a block
I haven't tried xdecor yet. It looks great. I agree that homedecor is big. It is great for creative building but a bit much for regular play. I will check out xdecor today.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!
A list of my mods can be found here
A list of my mods can be found here
- Gaming Association
- Member
- Posts: 62
- Joined: Tue Aug 18, 2015 01:52
- GitHub: Gerold55
- In-game: Gerold55
Re: Item inside of a block
still having a little bit of trouble can someone plz pm me to help me 2 figure this out?
Gaming Association
- Gaming Association
- Member
- Posts: 62
- Joined: Tue Aug 18, 2015 01:52
- GitHub: Gerold55
- In-game: Gerold55
Who is online
Users browsing this forum: No registered users and 5 guests