command /otosatcubuk:
trigger:
give 1 diamond hoe named "&c&lSatış Çubuğu" to player
on left click with diamond hoe:
if name of player's tool is "&c&lSatış Çubuğu":
if clicked block is a chest:
if amount of iron block in clicked block is greater than 0:
add (amount of iron block in clicked block * 45000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of iron block in clicked block * 45000000)% &7hesabınıza eklendi. " to player
remove every iron blocks from clicked block
else if amount of gold block in clicked block is greater than 0:
add (amount of gold block in clicked block * 50000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of gold block in clicked block * 50000000)% &7hesabınıza eklendi." to player
remove every gold blocks from clicked block
else if amount of emerald block in clicked block is greater than 0:
add (amount of emerald block in clicked block * 80000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of emerald block in clicked block * 80000000)% &7hesabınıza eklendi." to player
remove every emerald blocks from clicked block
else if amount of diamond block in clicked block is greater than 0:
add (amount of diamond block in clicked block * 70000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of diamond block in clicked block * 70000000)% &7hesabınıza eklendi." to player
remove every diamond blocks from clicked block
else if amount of iron ingot in clicked block is greater than 0:
add (amount of iron ingot in clicked block * 5000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of iron ingot in clicked block * 5000000)% &7hesabınıza eklendi." to player
remove every iron ingots from clicked block
else if amount of diamond in clicked block is greater than 0:
add (amount of diamond in clicked block * 15000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of diamond in clicked block * 15000000)% &7hesabınıza eklendi." to player
remove every diamonds from clicked block
else if amount of emerald in clicked block is greater than 0:
add (amount of emerald in clicked block * 20000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of emerald in clicked block * 20000000)% &7hesabınıza eklendi." to player
remove every emeralds from clicked block
else if amount of gold ingot in clicked block is greater than 0:
add (amount of gold ingot in clicked block * 10000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of gold ingot in clicked block * 10000000)% &7hesabınıza eklendi." to player
remove every gold ingots from clicked block
else if amount of cactus in clicked block is greater than 0:
add (amount of cactus in clicked block * 810000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of cactus in clicked block * 810000000)% &7hesabınıza eklendi." to player
remove every cactus from clicked block
else if amount of redstone ore in clicked block is greater than 0:
add (amount of redstone ore in clicked block * 2800000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of redstone ore in clicked block * 2800000000)% &7hesabınıza eklendi." to player
remove every redstone ore from clicked block
else if amount of coal ore in clicked block is greater than 0:
add (amount of coal ore in clicked block * 1000000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of coal ore in clicked block * 1000000000)% &7hesabınıza eklendi." to player
remove every coal ore from clicked block
else if amount of iron ore in clicked block is greater than 0:
add (amount of iron ore in clicked block * 7500000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of iron ore in clicked block * 7500000000)% &7hesabınıza eklendi." to player
remove every iron ore from clicked block
else if amount of gold ore in clicked block is greater than 0:
add (amount of gold ore in clicked block * 16000000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of gold ore in clicked block * 16000000000)% &7hesabınıza eklendi." to player
remove every gold ore from clicked block
else if amount of diamond ore in clicked block is greater than 0:
add (amount of diamond ore in clicked block * 50000000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of diamond ore in clicked block * 50000000000)% &7hesabınıza eklendi." to player
remove every diamond ore from clicked block
on right click with diamond hoe:
if name of player's tool is "&c&lSatış Çubuğu":
if clicked block is a trapped chest:
if amount of iron block in clicked block is greater than 0:
add (amount of iron block in clicked block * 45000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of iron block in clicked block * 45000000)% &7hesabınıza eklendi. " to player
remove every iron blocks from clicked block
else if amount of gold block in clicked block is greater than 0:
add (amount of gold block in clicked block * 50000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of gold block in clicked block * 50000000)% &7hesabınıza eklendi." to player
remove every gold blocks from clicked block
else if amount of emerald block in clicked block is greater than 0:
add (amount of emerald block in clicked block * 80000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of emerald block in clicked block * 80000000)% &7hesabınıza eklendi." to player
remove every emerald blocks from clicked block
else if amount of diamond block in clicked block is greater than 0:
add (amount of diamond block in clicked block * 70000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of diamond block in clicked block * 70000000)% &7hesabınıza eklendi." to player
remove every diamond blocks from clicked block
else if amount of iron ingot in clicked block is greater than 0:
add (amount of iron ingot in clicked block * 5000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of iron ingot in clicked block * 5000000)% &7hesabınıza eklendi." to player
remove every iron ingots from clicked block
else if amount of diamond in clicked block is greater than 0:
add (amount of diamond in clicked block * 15000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of diamond in clicked block * 15000000)% &7hesabınıza eklendi." to player
remove every diamonds from clicked block
else if amount of emerald in clicked block is greater than 0:
add (amount of emerald in clicked block * 20000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of emerald in clicked block * 20000000)% &7hesabınıza eklendi." to player
remove every emeralds from clicked block
else if amount of gold ingot in clicked block is greater than 0:
add (amount of gold ingot in clicked block * 10000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of gold ingot in clicked block * 10000000)% &7hesabınıza eklendi." to player
remove every gold ingots from clicked block
else if amount of cactus in clicked block is greater than 0:
add (amount of cactus in clicked block * 810000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of cactus in clicked block * 810000000)% &7hesabınıza eklendi." to player
remove every cactus from clicked block
else if amount of redstone ore in clicked block is greater than 0:
add (amount of redstone ore in clicked block * 2800000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of redstone ore in clicked block * 2800000000)% &7hesabınıza eklendi." to player
remove every redstone ore from clicked block
else if amount of coal ore in clicked block is greater than 0:
add (amount of coal ore in clicked block * 1000000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of coal ore in clicked block * 1000000000)% &7hesabınıza eklendi." to player
remove every coal ore from clicked block
else if amount of iron ore in clicked block is greater than 0:
add (amount of iron ore in clicked block * 7500000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of iron ore in clicked block * 7500000000)% &7hesabınıza eklendi." to player
remove every iron ore from clicked block
else if amount of gold ore in clicked block is greater than 0:
add (amount of gold ore in clicked block * 16000000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of gold ore in clicked block * 16000000000)% &7hesabınıza eklendi." to player
remove every gold ore from clicked block
else if amount of diamond ore in clicked block is greater than 0:
add (amount of diamond ore in clicked block * 50000000000) to player's money
send "&eSKYBLOCK &8» &c%(amount of diamond ore in clicked block * 50000000000)% &7hesabınıza eklendi." to player
remove every diamond ore from clicked block