Salut, voilà
on place of chest:
add location of event-block to {chestlist::*}
on right click on a chest:
if {chestlist::*} contains location of clicked block:
cancel event
send "Pas touche"
else if {chestlist.%player%::*} doesn't contain location of clicked block:
clear clicked block's inventory
add 1 diamond to clicked block's inventory
add location of clicked block to {chestlist.%player%::*}
else:
cancel event
send "T'as déjà regardé ce coffre !"
Salut,
on place of chest:
add location of event-block to {chestlist::*}
on right click on a chest:
if {chestlist::*} contains location of clicked block:
cancel event
send "Pas touche"
Je ne sais pas si ça répond au problème. Peut-être que je l'ai mal compris, redis moi si c'est le cas !
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.