Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

While loop only called once #69

@BrainStone

Description

@BrainStone

When running the generate_step2 process the loop is only executed once.

impulse process generate_step2 {
  /scoreboard players set Counter BM_Variables 0
  
  while: /scoreboad players test Counter BM_Variables 0 5
  repeat {
    create_seed()
    create_seed()
    
    /say Run
    
    /scoreboard players add Counter BM_Variables 1
  }
}

process create_seed {
  /execute @e[tag=Generator] ~ ~ ~ /scoreboard players operation @s BM_Variables += @r[type=armor_stand,tag=RNG,c=1] BM_Constants
  /execute @e[tag=Generator] ~ ~ ~ /scoreboard players operation @s BM_Variables *= @r[type=armor_stand,tag=RNG,c=1] BM_Constants
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions