loop all sheeps:
set {_tmp} to random integer between 0 and 8
name of loop-entity contains "&cŞans"
if {_tmp} is 0:
set the colour of loop-entity to red
if {_tmp} is 1:
set the colour of loop-entity to blue
if {_tmp} is 2:
set the colour of loop-entity to yellow
if {_tmp} is 3:
set the colour of loop-entity to green
if {_tmp} is 4:
set the colour of loop-entity to purple
if {_tmp} is 5:
set the colour of loop-entity to orange
if {_tmp} is 6:
set the colour of loop-entity to magenta
if {_tmp} is 7:
set the colour of loop-entity to cyan
if {_tmp} is 8:
set the colour of loop-entity to pink
on break of cobblestone:
chance of 10%:
play raw sound "random.levelup" at player with pitch 1 volume 10
set {_loc1.%player%} to location 2 meters forwards player
set {_loc2.%player%} to location 2 meters left player
set {_loc3.%player%} to location 2 meters right player
spawn sheep at {_loc1.%player%}
spawn sheep at {_loc2.%player%}
spawn sheep at {_loc3.%player%}
loop all entities in radius 5 around player:
loop-entity is sheep:
set the colour of the loop-entity to pink
on break of cobblestone:
chance of 10%:
play raw sound "random.levelup" at player with pitch 1 volume 10
set {_loc1} to location 2 meters forwards player
set {_loc2} to location 2 meters left player
set {_loc3} to location 2 meters right player
spawn sheep at {_loc1}
spawn sheep at {_loc2}
spawn sheep at {_loc3}
loop all entities in radius 5 around player:
loop-entity is sheep:
set the colour of the loop-entity to pink
Aynı kodu attınız renk değiştiren koyun spawnlanmıyor ve müzigi sadece o kişinin duymasını istiyorumSesi herkes duyar.
Kod:on break of cobblestone: chance of 10%: play raw sound "random.levelup" at player with pitch 1 volume 10 set {_loc1} to location 2 meters forwards player set {_loc2} to location 2 meters left player set {_loc3} to location 2 meters right player spawn sheep at {_loc1} spawn sheep at {_loc2} spawn sheep at {_loc3} loop all entities in radius 5 around player: loop-entity is sheep: set the colour of the loop-entity to pink