Started by
RoboMan
on
Topic category: Help with modding (Java Edition)
I need to make a procedure that only affects players, but not other entities. For example, "If a player is at *x y z* coordinates, do *so and so*. However, I have no idea how to only make this affect players at that coordinate rather than all entities.
so your procedure should look like this: for every entity iterator on a block radius of 30 blocks
if entity iterator is type: Player
do give potion effect to entity iterator for # ticks type: EFFECT
you might want to search before posting
Thank you. Also, I apologize. I did search, but nothing came up regarding my issue.
all fine :)
there is no "if entity is player"
Nop there is Kjuhj_, you have to use the
Is <entity selector> (sub)type of <entity type>
block and select player as the entity type.