How can I ignites a custom portal with a Twilight Forest Shaped just dropping an item??

Started by Cleiton909 on

Topic category: Help with modding (Java Edition)

Last seen on 19:47, 11. Sep 2024
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I ignites a custom portal with a Twilight Forest Shaped just dropping an item??

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 ;)

Last seen on 16:04, 16. Sep 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If your (water) is a custom…
Tue, 09/10/2024 - 00:43

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.