Started by
RandomDrago
on
Topic category: Help with Minecraft modding (Java Edition)
I'm basically making a city and the city has it's own biome, The player can't enter it unless they got boolean variable "cityperm" is true
Is there a way to keep the player out of the city biome?
What I thought was something like teleporting the player a block away if they are in the biome or like teleporting them to the entrance or something but I don't know how to detect that.
Can someone please lend a hand?
Hello, I found a close alternative, I have made a procedure that will strike you with lightning if you do not have an emerald in your offhand.
Sorry here's the image
https://imgur.com/a/iKVB5od
Well- That's a way to detect if player is in biome thank you for that!
But- Lightning will end up harming the nearby entities as well- Plus I don't want player to get harmed since it might lead to their death- I might just end up teleporting player to entrance of city as worst case scenario
you could always do the twilight forest approach and give the player a negative potion effect if a player is in the biome, which unlike lightning does not damage non-player entities