tModLoader Can you make an item count as a crafting station while in player's inventory?

Stryke

Terrarian
I wanna make a mortar and pestle item that while it's in your inventory allows you do craft potions like a table and bottle does. Is this possible?
 
Yes.
Add this in the player update script, which checks if the item is in the inventory:
player.adjTile[13] = true;
That code will make so the game recognizes as the character being near a Bottle (Tile ID = 13).
 
Yes.
Add this in the player update script, which checks if the item is in the inventory:
player.adjTile[13] = true;
That code will make so the game recognizes as the character being near a Bottle (Tile ID = 13).
I did that but for some reason it gets overriden I guess
Is there another way?
 
Based on the source, If you place it on any hook from ResetEffects() and ahead, it should work.
But you may also try to set oldAdjTile[13] as true.

But have to take in account also that my source is from earlier Terraria 1.3, so things may have changed. If it still doesn't work, I'd recommend you to ask for support to a tModLoader developer.
 
Back
Top Bottom