I want to figure a simple chain of commands that'll prevent my pets from falling out of the world, with how easy it is to happen in the Skylands Buffet generation.
I don't have a single clue of how I would target entities that go below a certain y level. There isn't much else I need to know, the rest is straight forward from there.
I want to figure a simple chain of commands that'll prevent my pets from falling out of the world, with how easy it is to happen in the Skylands Buffet generation.
I don't have a single clue of how I would target entities that go below a certain y level. There isn't much else I need to know, the rest is straight forward from there.
i forgot to post this in commands instead, oops
There are more ways but this is how I would do it.
Create a scoreboard objective for storing the entities y level:
/scoreboard objectives add y dummy
and then run this in a loop to store the y level into the objective
/execute as @e[name=pet] run execute store result score @s y run data get entity @s Pos[1]
and now you can test the y level in different ways:
I want to figure a simple chain of commands that'll prevent my pets from falling out of the world, with how easy it is to happen in the Skylands Buffet generation.
I don't have a single clue of how I would target entities that go below a certain y level. There isn't much else I need to know, the rest is straight forward from there.
i forgot to post this in commands instead, oops
There are more ways but this is how I would do it.
Create a scoreboard objective for storing the entities y level:
and then run this in a loop to store the y level into the objective
and now you can test the y level in different ways:
or
Command block engineer // Developer // #TeamTrees