Page 1 of 1
Item inside of a block

Posted:
Tue Sep 22, 2015 03:04
by Gaming Association
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?
Re: Item inside of a block

Posted:
Tue Sep 22, 2015 10:02
by Sane
You may have gotten lost in translation. Please rephrase.
Re: Item inside of a block

Posted:
Tue Sep 22, 2015 11:08
by Gaming Association
These 2 pictures should help this is what im talking about this is what we need help on
Re: Item inside of a block

Posted:
Tue Sep 22, 2015 12:04
by Ferk
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.luaI 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.
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 00:07
by programmingchicken
this seems interesting.
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 00:29
by Don
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
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 00:53
by Gaming Association
But then my mod that someone is helping me make would be huge I need it as small as possible
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 01:44
by Don
Gaming Association wrote:But then my mod that someone is helping me make would be huge I need it as small as possible
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.
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 01:45
by Gaming Association
Wouldn't it be possible to make it not spinning?
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 02:36
by Don
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?
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 07:05
by Ferk
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.
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 10:10
by Gaming Association
oh ok thx
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 11:19
by Don
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.
I have not seen this version of itemframes. I will have to check it out. The last time I used itemframes they spun.
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 13:24
by Ferk
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.
Re: Item inside of a block

Posted:
Thu Sep 24, 2015 14:19
by Don
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.
Re: Item inside of a block

Posted:
Tue Sep 29, 2015 21:49
by Gaming Association
still having a little bit of trouble can someone plz pm me to help me 2 figure this out?
Re: Item inside of a block

Posted:
Sun Nov 01, 2015 01:14
by Gaming Association
Plz can anyone help plz