Items Placed

Place to get help with not working mods / modding interface.
User avatar
zer0t3ch
Fast Inserter
Fast Inserter
Posts: 118
Joined: Fri Jul 26, 2013 6:06 am
Contact:

Items Placed

Post by zer0t3ch »

Is there a way to know what item a player places when they place it?

(onbuiltentity won't work for what I need, unless someone knows how to convert an entity into the itemstack that it came from)
"F**k thy hater"
-George Watsky

Feel free to contact me!
Skype: Zer0t3ch
Razer Comms: Zer0t3ch
Email: zer0t3ch@live.com

Image
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Items Placed

Post by ficolas »

zer0t3ch wrote:Is there a way to know what item a player places when they place it?

(onbuiltentity won't work for what I need, unless someone knows how to convert an entity into the itemstack that it came from)
Im not sure if you still need this but...

Why do yoy need the item stack?
For the name of the item??
If so, all "vanilla" items have the same name as the entity, the only two items that I know that arent this way are from my mod, the underground mining drill and the forge, I should change it to be more compatible with stuff.

If you want to get the amount of items the player haves or something you can just get the data diretly from the player
User avatar
zer0t3ch
Fast Inserter
Fast Inserter
Posts: 118
Joined: Fri Jul 26, 2013 6:06 am
Contact:

Re: Items Placed

Post by zer0t3ch »

ficolas wrote:
zer0t3ch wrote:Is there a way to know what item a player places when they place it?

(onbuiltentity won't work for what I need, unless someone knows how to convert an entity into the itemstack that it came from)
Im not sure if you still need this but...

Why do yoy need the item stack?
For the name of the item??
If so, all "vanilla" items have the same name as the entity, the only two items that I know that arent this way are from my mod, the underground mining drill and the forge, I should change it to be more compatible with stuff.

If you want to get the amount of items the player haves or something you can just get the data diretly from the player
That's just the problem though. If someone had a mod where the entity names and item names were different, that would break my mod. That's why I need an event like this. I hope they do this and then I could theoretically make my own.
"F**k thy hater"
-George Watsky

Feel free to contact me!
Skype: Zer0t3ch
Razer Comms: Zer0t3ch
Email: zer0t3ch@live.com

Image
Post Reply

Return to “Modding help”