Preventing users from teleporting on top of the nether?

Preventing users from teleporting on top of the nether? - Set of gratitude message for doctors with stethoscope and hearts

I have users repeatedly using ender pearls to get on the roof of the nether (128 blocks+) and build up there. I want to avoid this. Currently, the only way I could think of is blacklisting ender pearls in the nether, but if possible, I want to keep the pearls and prevent it otherwise.

What I have checked already:

  • Full-height nether: I could not find a generator that would do that.
  • Worldguard regions: I was not able to create a really large region, nevermind and endless one. I could do this only for a certain area (around the nether spawn), but I would prefer to have a solution that covers the whole nether
  • Worldborder: I submitted a feature request for Worldborder since it currently only supports x/z coordinates, not y.
  • Plugins: I could not find any plugins that are half way up to date doing this.

Any other ideas? Running latest version of Spigot.



Best Answer

There's a relatively simple command block solution to this, which works in vanilla.

First, set up a scoreboard objective to detect players in the Nether

/scoreboard objectives add onNetherCeiling dummy

Create a clock (I suggest using a fill clock) in your spawnchunks (so that it is always loaded), hidden in a box of Bedrock, and add the following three command blocks, to be run in this order:

/scoreboard players set @a onNetherCeiling 0
/scoreboard players set @a[m=0,y=127,dy=128] onNetherCeiling 1 {Dimension:-1}
/effect @a[score_onNetherCeiling_min=1] 20 1 2 false

The first two commands will assign a score of 1 to every player in survival mode (m=0), in dimension -1 (the Nether), with a y coordinate between 127 and 255.

The last command will hit the evildoers with 1 second of Wither II. You can do whatever you want here instead, just use @a[score_onNetherCeiling_min=1] as your target and it works. If you prefer smiting them for their insolence, try

/execute @a[score_onNetherCeiling_min=1] ~ ~ ~ summon LightningBolt ~ ~ ~

There is a slight chance that this won't work with Bukkit/Spigot though, due to the way Bukkit treats the alternate dimensions. Assuming that does not affect NBT data (and I don't see any reason for that), you can place the command blocks on top of the Nether ceiling instead, but you will have to make sure the chunk they are in stays loaded.




Pictures about "Preventing users from teleporting on top of the nether?"

Preventing users from teleporting on top of the nether? - Top view of many clean single use light blue surgical protective face mask lying on top of each other in disorder
Preventing users from teleporting on top of the nether? - From above arrangement of red heart shapes placed on blue background with THANK YOU NURSES inscription
Preventing users from teleporting on top of the nether? - From above of ripe exotic red kuri squashes with pumpkins and wicker basket with fresh bread arranged on blanket with books and scattered dry leaves in autumn park



Can chorus fruit teleport you on top of the Nether?

Chorus Fruit can teleport you to the roof of the Nether.

How do you tp through the nether roof?

Climb the ladder and look towards the corner edge of the bedrock, as shown in the image. Throw the Ender Pearl while pointing at the edge of the block. This pearl glitches and takes the player above the Nether ceiling in Minecraft.

Does teleporting work in the Nether?

In Java Edition, when used via the execute command, can teleport between the Overworld, the Nether and the End: To teleport the executing player to the same coordinates, but in the Nether: execute in minecraft:the_nether run teleport ~ ~ ~



Spawn-Proofing Your Nether Hub! ▫ The Minecraft Survival Guide (Tutorial Lets Play) [Part 173]




More answers regarding preventing users from teleporting on top of the nether?

Answer 2

Rather than changing a lot of blocks, consider this:

enter image description here

To complete the teleport exploit I believe you need to have a 1 block between you and the nether roof, so if you make it so there is none of that, they can't teleport.

So you can either make it so there are no 1 block gaps (design 2), or you can make it completely solid (design 1).

Answer 3

You could use a Worldedit to fill up the space above for all the allowed space in the nether with bedrock, so when they teleport up, they suffocate and learn that doing that is not allowed.

That would take a long time to do, that's like 50 billion blocks. Using a rig with 128GB ram dedicated to the server, twin/triple/quad 2080TI cards, the best cpu on the market it would still crash trying to place that many blocks. Even doing 50 million blocks at a time would take you a long time to place that many. There's tons of plugins that prevent building above the nether ceiling and give ceiling void damage. For instance, I use this on my server: https://dev.bukkit.org/projects/no-above-nether?gameCategorySlug=bukkit-plugins&projectID=263893

shareedit

Answer 4

You could use a Worldedit to fill up the space above for all the allowed space in the nether with bedrock, so when they teleport up, they suffocate and learn that doing that is not allowed.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Karolina Grabowska, Karolina Grabowska, Karolina Grabowska, Olga Lioncat