Started by
YeSMan20
on
Topic category: Help with Minecraft modding (Java Edition)
So I want my entity to teleport to the player randomly 1 time, but instead, it does it constantly, instead of stopping once it has been teleported
here's my procedure
If it is on entity tick update, it will run constantly. You could possibly turn it off by using nbt logic tags(something like: if customtag=false, check the randomizer, then set customtag to true and run the rest of the procedure). I'm not posative if custom nbt tags start of as true or false, but it should be easy to check(if it works, it starts as false, if it doesn't, swap the true and false logic)