Item inside of a block

Post Reply
User avatar
Gaming Association
Member
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Item inside of a block

by Gaming Association » Post

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
Screenshot (23).png (429.26 KiB) Viewed 754 times
Screenshot (22).png
Screenshot (22).png (316.12 KiB) Viewed 754 times
Last edited by Gaming Association on Thu Sep 24, 2015 03:06, edited 1 time in total.
Gaming Association

User avatar
Sane
Member
Posts: 103
Joined: Tue Jun 17, 2014 09:31
GitHub: mt-sane
In-game: Sane

Re: Item inside of a block

by Sane » Post

You may have gotten lost in translation. Please rephrase.
Trying to stay me.

User avatar
Gaming Association
Member
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: Item inside of a block

by Gaming Association » Post

These 2 pictures should help this is what im talking about this is what we need help on
Attachments
Screenshot (23).png
Screenshot (23).png (429.26 KiB) Viewed 754 times
Screenshot (22).png
Screenshot (22).png (316.12 KiB) Viewed 754 times
Gaming Association

User avatar
Ferk
Member
Posts: 337
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: Item inside of a block

by Ferk » Post

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.
{ ☠ Dungeontest ☠ , ᗧ••myarcade•• }

User avatar
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

by programmingchicken » Post

this seems interesting.
<gamerdude> I apologize for the above content

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Item inside of a block

by Don » Post

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
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

User avatar
Gaming Association
Member
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: Item inside of a block

by Gaming Association » Post

But then my mod that someone is helping me make would be huge I need it as small as possible
Gaming Association

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Item inside of a block

by Don » Post

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.
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

User avatar
Gaming Association
Member
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: Item inside of a block

by Gaming Association » Post

Wouldn't it be possible to make it not spinning?
Gaming Association

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Item inside of a block

by Don » Post

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?
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

User avatar
Ferk
Member
Posts: 337
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: Item inside of a block

by Ferk » Post

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.
{ ☠ Dungeontest ☠ , ᗧ••myarcade•• }

User avatar
Gaming Association
Member
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: Item inside of a block

by Gaming Association » Post

oh ok thx
Gaming Association

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Item inside of a block

by Don » Post

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.
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

User avatar
Ferk
Member
Posts: 337
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: Item inside of a block

by Ferk » Post

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.
{ ☠ Dungeontest ☠ , ᗧ••myarcade•• }

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Item inside of a block

by Don » Post

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

User avatar
Gaming Association
Member
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: Item inside of a block

by Gaming Association » Post

still having a little bit of trouble can someone plz pm me to help me 2 figure this out?
Gaming Association

User avatar
Gaming Association
Member
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: Item inside of a block

by Gaming Association » Post

Plz can anyone help plz
Gaming Association

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests