Salut à toi, ton code du début marche très bien je l'ai tester ! Sa doit surement venir de toi
En espérant avoir pus t'aider
Darkmariosan :)
Ton code:
command /piege:
permission: op
trigger:
give player 1 sandstone named "&6Soul&lStone"
on place:
if player is holding a sandstone named "&6Soul&lStone":
add event-block's location to {locations.sandpiege::*}
on walk on sandstone:
if "%{locations.sandpiege::*}%" contains "%location of event-block%":
set event-block to air
remove location of event-block from {locations.sandpiege::*}
on break of sandstone:
if "%{locations.sandpiege::*}%" contains "%location of event-block%":
remove location of event-block from {locations.sandpiege::*}