#how can i make custom world border
1 messages · Page 1 of 1 (latest)
À mon avis c'est peut-être possible mais beaucoup trop complexe, le mieux c'est d'utiliser le script je pense
et tu serais m'expliqué??
déjà, comment tu veux configurer ta bordure ? Tu veux qu'elle soit franchissable mais qu'elle fasse des dégats, ou qu'elle soit impossible à passer ?
impossible à passer
(repeating, always active)
/execute as @a at @s unless entity @s[x=-25000,y=-1000,z=-25000,dx=50000,dy=10000,dz=50000] run tp ^^^1 facing 0 ~ 0
This will teleport them back inside the border if they ever step outside.
and if they use enderpearl
This method counters it. Imagine a 25k by 25k box which the players have to be inside at all times. If they are outside they get constantly teleported back inside one block at a time. This is why I didn't opt for border blocks as they can't stop pearls
Mmmh okay il see
What happens if the player enters backwards?
The "facing" part at the end forces him to face spawn
this could tp players into blocks tho, since enderpearls travel a longer distance and the teleportation just uses players y pos so its just horizontal teleportation, so if the player managed to gain/lose hright they'll either suffer fall damage by being teleported high in the sky, or suffocate because they get tped into blocks
If players already know the limit of the world then the player must be responsible for h death outside the limits.
You could add another command for killing enderpearls. It is kinda their fault for trying to bypass the border though
Personally I'd keep it in for punishment
OH PUTAIN UN FRANÇAIS, Tu t’y connais en dev d’addon ?
Yo ! Alors je connais bien je script et je commence à apprendre à faire des blocs custom, à part ça rien d'autre et toi