After reading through I noticed he said that it doesn't always work
And it cant be relative to the worlds time as on a server with mods people could easily change the time effecting the life of the item.
Hello again!
How would I go about making it so that after a certain amount of time an item exists it turns into another item?
EDIT: The item needs to be able to change ANYWHERE. In chest, In entities, Anywhere possible.
The idea is the item decays after a set period of time. After the item enters the players inventory (Thats the only way to retrieve the item) It needs to start counting down.
Thank you so much, I was originally sending the entity ID through x but I was decoding it a different way (I was essentially making a new Entity with that id) now the crash is gone and the inventory works!
I'll be sure to credit you when we release the mod. You have a tutorial page right? Do you have an official link that I can send people to?
You see I tried that, Copying most of the tile entity code into the entity code, But it doesn't seem to work. Also how would I go about getting an instance of the entity I've just opened? I use a GuiManager to handle the guis I'm able to pass in the player but now the entity I'm interacting with.
Hello! So a friend and I are working on a mod. I've created an entity that when right clicked on opens a gui. The gui already contains a container and all player slots work. The entity slots are assigned to a dummy inventory at the moment. My question is how would I go about add an inventory to the entity and saving it.
The inventory looks like this: