Item inside of a block

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 » Tue Sep 22, 2015 03:04

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 3504 times
Screenshot (22).png
Screenshot (22).png (316.12 KiB) Viewed 3504 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 » Tue Sep 22, 2015 10:02

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 » Tue Sep 22, 2015 11:08

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 3504 times
Screenshot (22).png
Screenshot (22).png (316.12 KiB) Viewed 3504 times
Gaming Association
 

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

Re: Item inside of a block

by Ferk » Tue Sep 22, 2015 12:04

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: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: Item inside of a block

by programmingchicken » Thu Sep 24, 2015 00:07

this seems interesting.
I'm bold. I'm sarcastic. I'm PChicken.
 

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

Re: Item inside of a block

by Don » Thu Sep 24, 2015 00:29

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 » Thu Sep 24, 2015 00:53

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: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Item inside of a block

by Don » Thu Sep 24, 2015 01:44

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 » Thu Sep 24, 2015 01:45

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

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

Re: Item inside of a block

by Don » Thu Sep 24, 2015 02:36

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: 330
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: Item inside of a block

by Ferk » Thu Sep 24, 2015 07:05

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 » Thu Sep 24, 2015 10:10

oh ok thx
Gaming Association
 

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

Re: Item inside of a block

by Don » Thu Sep 24, 2015 11:19

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: 330
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: Item inside of a block

by Ferk » Thu Sep 24, 2015 13:24

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: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Item inside of a block

by Don » Thu Sep 24, 2015 14:19

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 » Tue Sep 29, 2015 21:49

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 » Sun Nov 01, 2015 01:14

Plz can anyone help plz
Gaming Association
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 6 guests

cron