Hello, I am brand new to creating datapacks and I was wondering if someone could point me in the direction of how to either disable the ability to place an ender eye in a portal frame, or disable the ability to travel through the portal. Preferrably both honestly.
I'm not looking for someone to give me the exact code, just help me figure it out.
I am brand new to data packs as I mentioned earlier, but I have coding experience as well as Minecraft plugin development experience, but wanted to dip my feet into data packs, and thought this would be a fun way. Thank you!
#Disable End Portal
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
Someone will come and help soon!
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1722273746:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Well there's an overly complex way that technically achieved what you want, or there's the easy way that produces the same result but isn't exactly what you asked for
The latter is just a matter of running a full command at all players periodically that replaces nearby end portal frames with air or bedrock or something
hmm, there isnt a way to detect the event where the portal frame changes from empty to filled and just cancel it?
Not directly
You would have to detect the player placing the eye of ender, raycast to find the portal block, and fill the area a around that with air, replacing end portal blocks
dang data pack developers have it rough huh
Or another thing I found out you can do is use an advancement to detect entering an end portal block, which triggers before you go through the portal. Then you could do something like tp the player away or remove the portal
ohh that sounds a lot more preferrable honestly
But that is a bit finicky
Later I can maybe send you the file I used for it, because I actually had two cases to make it more reliable
i'd appreciate that a lot, thank you!!
🗑️ Recycling Thread
This thread has been inactive for some time, so I'm going to archive it.
If you're still using the thread, just send a message and it'll pop back on the thread list.