Mirreski / Skript

Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
http://njol.ch/projects/skript
7 stars 2 forks source link

number of all chickens #37

Closed heliomcp closed 4 years ago

heliomcp commented 9 years ago

Works fine: message "counted %number of all cows% Cows in the world" add number of all cows to {_allCreatures}

Doesnt work: message "counted %number of all chickens% Chickens in the world" add number of all chickens to {_allCreatures}

Error: Can't loop chicken item or cooked chicken because it's only a single value (chicken.sk, line 7: loop chickens:')

Mirreski commented 9 years ago

Strange error. Honestly no idea what could be causing it.

But this works apparantly.

set {_allCreatures::*} to all chickens
message "counted %amount of {_allCreatures::*}% Chickens in the world"

Need to test to see if this issue has been in Skript 2.2 and/or Skript 2.1.2.