Minecraft Data Packs / Tool

Disable End Portals

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • 16,213 views, 14 today
  • 2,201 downloads, 0 today
  • 26
  • 16
  • 26
iheartstriders's Avatar iheartstriders
Level 66 : High Grandmaster Lava Rider
185
About

This data pack makes it so you can disable end portals! To disable or enable end portals, Just run the function 'disable' to disable it, Or run the function 'enable' to enable them!

This data pack was requested by swoah!


If you want to uninstall the data pack, Make sure to use the "uninstall" function!

Advancements made with TheDestruc7i0n's advancements generator

Tell me if there are any bugs with this data pack!

if you don't know how to install data packs, take a look at this tutorial!
Creditswoah for requesting the data pack, Used paint.net for the icon, Advancements made with TheDestruc7i0n's advancements generator.
CompatibilityMinecraft 1.16
toMinecraft 1.19
Tags

2 Update Logs

Update #2 : by iheartstriders 12/14/2022 2:00:25 amDec 14th, 2022

  • Fixed player items not coming back when being kicked from the end
Thanks to TwoPointInfinity for making this fix!
LOAD MORE LOGS

Create an account or sign in to comment.

TwoPointInfinity
12/09/2022 7:46 pm
Level 1 : New Miner
TwoPointInfinity's Avatar
hey so when you go into the portal and it sends you to your spawn point you lose all your stuff. can that be saved?
2
iheartstriders
12/10/2022 3:15 pm
Level 66 : High Grandmaster Lava Rider
iheartstriders's Avatar
I looked at the code and it should keep your items, do you have any other data packs or mods installed?
1
TwoPointInfinity
12/13/2022 10:27 pm
Level 1 : New Miner
history
TwoPointInfinity's Avatar
I made a server with no mods and no datapacks except this one on fabric 1.19.2 and if a player in survival goes into the end portal they loser their items.

sorry for the late reply i should have paid more attention to my notifications.

is there a function or gamerule i should be changing to make sure players dont lose their items?

im 100% seeing your code makes sense, gamerule keep inv true.

WHEN I SET THE GAMERULE to keepinv true before going into the portal, i still lose my items.
2
TwoPointInfinity
12/13/2022 10:33 pm
Level 1 : New Miner
TwoPointInfinity's Avatar
oh i see, so it works fine when players step above the players. my issue is with the inEnd.mcfunction

players in the end who are killed with keepinv dont keep their inv. The above portal part works but if someone goes in from the side or bottom it would lose their inv.
2
TwoPointInfinity
12/13/2022 10:50 pm
Level 1 : New Miner
TwoPointInfinity's Avatar
doing some testing, keepinventory gives your inventory back about a quarter to half second after respawning. it looks like by disabling keepinv so quickly after dying, it doesnt give the server enough time to give the player their stuff back.
2
TwoPointInfinity
12/13/2022 11:04 pm
Level 1 : New Miner
TwoPointInfinity's Avatar
I fixed this by adding a 10 tick delay to the last the commands in the inend.mcfunction.



I did this by removing "gamerule keepinv false" from inend.mcfunction and putting "schedule function disableendportals:inend2 10t"

I made a new file "inend2.mcfunction" and put only gamerule keepinv false in there.



This makes it so that the 2nd mcfunction file is sent 10t later. long enough for minecraft to give back the inventory of the player. This may be able to be shortened to less ticks but im not gonna test it to find out how long it takes. it looked like 10t and it works.
2
Rob333
11/06/2022 11:08 pm
He/Him • Level 48 : Master Sus Imposter
Rob333's Avatar
It passed a lot of time since we met last time
1
Defom_kills
10/31/2022 12:50 pm
Level 10 : Journeyman Miner
Defom_kills's Avatar
1.18.2 please?
2
iheartstriders
11/05/2022 4:41 am
Level 66 : High Grandmaster Lava Rider
iheartstriders's Avatar
should work in 1.18.2 cause it worked in 1.19 for me
1
drSqu33kins
07/07/2022 5:36 pm
Level 1 : New Explorer
drSqu33kins's Avatar
1.18.2?
2
Deniela
06/25/2021 11:35 am
Level 1 : New Princess
Deniela's Avatar
theres a glitch, when you go from under and jump up you get into the end, it's very hard to tell which players are actually going into the end or if they just get that achievement.
1

Welcome