Started by
Cleiton909
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a dimention mod and my portal's structure is a The End/Twilight Forest shape, but I want to active it throwing a crystal that I added (Fluorite), just like Twilight Forest where u throw a diamond and the portal is activated. But I can't find a block procedure that do something like "An item is dropped in (place) and (portal block appears)".
If someone could tell me how can I do that, I'll be grateful ;)
If your (water) is a custom block then make it tick and on tick update check for item entities at y and y+1 of block, if item matches the desired item then replace the (water) to the portal block and kill the item entity.