BenXii Posté(e) le 31 janvier 2018 Posté(e) le 31 janvier 2018 Skript: 2.2 Minecraft : 1.9 Bonjours, dans mon skript de Refill j'aimerai que sa refill les coffre mais mettre les item dans un slot aléatoire et non au début en haut à gauche dans le coffre ! Voici le skript : command /refill: permission: refill.refill permission message: &8[&3&lB&r&fInfos&8] &fTu n'as pas la permission ! trigger: loop blocks in radius 7 around {refill}: if loop-block is a chest: add 1 diamond sword of sharpness 1 and knockback 1 to {_refill.list::*} add 1 golden apple to {_refill.list::*} add 1 Splash Potion of Swiftness II to {_refill.list::*} set {_reffil1} to a random element out of {_refill.list::*} set {_reffil2} to a random element out of {_refill.list::*} set {_reffil3} to a random element out of {_refill.list::*} clear loop-block's inventory add {_reffil1} to inventory of loop-block add {_reffil2} to inventory of loop-block add {_reffil3} to inventory of loop-block
Messages recommandés