Hey I have a problem and I would like that if you mine coal that does not drop coal but eg coins are given and a message is issued I do not know how I can do this here my code I have written so far sry my english is not so good but I hope you can help me!
on break of coal ore:
on break of coal ore:
if player is in world "Mine":
add 2 to {coins::%player%}
send action bar from "{@prefix} &7Du hast &62 Coins &7bekommen!" to player
loop entities:
else:send action bar from "{@prefix} &7Du hast &62 Coins &7bekommen!" to player
loop entities:
loop-entity is a dropped item
clear loop-entity
clear loop-entity
stop