Bonjour, aujourd'hui je vous donne un petit Skript qui permet d'avoir les casques qui détectent si l'objet que vous tenez dans votre main est dans un coffre aux alentours de vous dans un rayon X.
Les crafts sont pour ceux qui savent lire le Skript (désolé les débutants)
Mais je déteste les leechers.
on load:
register new shaped recipe for diamond helmet named "&bCasque &4BOTANIA &2x6" using diamond, diamond, diamond, diamond, redstone, diamond, compass, clock, compass
register new shaped recipe for diamond helmet named "&bCasque &4BOTANIA &2x12" using diamond, diamond, diamond, diamond, emerald, diamond, compass, clock, compass
register new shaped recipe for diamond helmet named "&bCasque &4BOTANIA &2x24" using diamond, diamond, diamond, diamond, beacon, diamond, compass, clock, compass
command /botania:
trigger:
if player is wearing a diamond helmet named "&bCasque &4BOTANIA &2x6":
if player is not holding air:
loop all blocks in radius 6:
if loop-block is chest:
if loop-block's inventory contains player's tool:
set action bar of player to "&4[botania]&2Un coffre contient l'objet que tu tiens ! X : %x location of loop-block% Y : %y location of loop-block% Z : %x location of loop-block%"
play "LEVEL_UP" to player at volume 100
else if player is wearing a diamond helmet named "&bCasque &4BOTANIA &2x12":
if player is not holding air:
loop all blocks in radius 12:
if loop-block is chest:
if loop-block's inventory contains player's tool:
set action bar of player to "&4[botania]&2Un coffre contient l'objet que tu tiens ! X : %x location of loop-block% Y : %y location of loop-block% Z : %x location of loop-block%"
play "LEVEL_UP" to player at volume 100
else if player is wearing a diamond helmet named "&bCasque &4BOTANIA &2x24":
if player is not holding air:
loop all blocks in radius 24:
if loop-block is chest:
if loop-block's inventory contains player's tool:
set action bar of player to "&4[botania]&2Un coffre contient l'objet que tu tiens ! X : %x location of loop-block% Y : %y location of loop-block% Z : %x location of loop-block%"
play "LEVEL_UP" to player at volume 100
every 0.1 tick:
make all players execute command "/botania"
Voilà un petit code bien sympa ! ;)
PS : Qui pourrait me passer RandomSk qui fonctionne sous Spigot 1.8.7 (mon serveur est hébergé chez Crystal-Serv et les .jar de bukkit et spigot sont un peu modifiés mais je ne pense pas que le problème vient de là)
Cordialement,
Clemdu45
REQUIS POUR CE SKRIPT : Les addons les plus utilisés ;)