#Looping with entities

1 messages · Page 1 of 1 (latest)

outer lodge
#

try adding the entity to the variable

frail trench
outer lodge
#

send full code

rotund flower
#

try this

loop 5 times:
  summon item display at {_pl}:
    set {_egg::%loop-value%} to entity```
Also using lists would be better imo instead of making a new variable (egg1, egg2; instead of making egg::1, egg::2)
frail trench
zinc storm
#

there's no event?

rotund flower
frail trench
zinc storm
#

maybe try using the spawn section, spawn ... at LOCATION: set {_list::%loop-iteration%} to the ...

rotund flower
#

am i not real

#

help

zinc storm
#

oh yes i am blind

zinc storm
#

try the item display

frail trench
#

it is spawning only 1

light marten
frail trench
#

i am trying to condesnse code as its a chunky function and i want shorter functions

#

theres a lot of repeated stuff

#

for 5 times

#

displays

light marten
#

But the code in the summon will be executed 5 times

#

If you summon 5 displays

frail trench
#

i am trying to get 5 displays instead of 5 diffrent lines of code i just want to make a loop to spawn them

#

but it isnt summoning all of them and the location