I'm trying to make a skript to which once you right click a block it takes an amount of money from the player and then gives you a different block
the player balance should not be able to go negative though, if you could please help me that would be greatly appreciated!
I have this code but it doesnt work:
on rightclick of glass block:
if player's money is more than or equal to 2000:
execute console command "/eco take %player% 2000!"
remove event-block's location from {generator::1::*}
set event-block to air
give glass block named "&9Block Level 2" to player
stop
else:
send action bar "{@prefix} You Do Not Have Enough Money For This!" to player
the player balance should not be able to go negative though, if you could please help me that would be greatly appreciated!
I have this code but it doesnt work:
on rightclick of glass block:
if player's money is more than or equal to 2000:
execute console command "/eco take %player% 2000!"
remove event-block's location from {generator::1::*}
set event-block to air
give glass block named "&9Block Level 2" to player
stop
else:
send action bar "{@prefix} You Do Not Have Enough Money For This!" to player
Last edited: