the block cannot be reinserted after the block has been removed. After the block is broken and the server is renewed, the hologram is deleted but continues to produce.
Code:
command /AdminCoinSP <text> <player>:
permission: coinsp.admin
permission message: '&cGerekli Yetkin Yok.'
trigger:
if arg-1 is "give":
if arg-2 is not set:
give 1 chest named "&bPCNW &9» &eCoin Spawner" to player
if arg-2 is set:
give 1 chest named "&bPCNW &9» &eCoin Spawner" to arg-2
if arg-1 is "clear":
clear {isspanwer::*}
on place of chest:
if name of player's tool is "&bPCNW &9» &eCoin Spawner":
set {_owner} to asb owner of island at location of player
if {isspanwer::%{_owner}%} is not set:
set {isspanwer::%{_owner}%} to true
if name of player's tool is "&bPCNW &9» &eCoin Spawner":
set event-block to chest
create holo object "&eCoin &6Spawner;ItemStack:prismarine crystals;;&6Sahibi &9» &e%player%;&6Süre &9» &e10 Saniye;&6Miktar &9» &e1" with id "%event-block's location%" at location 2.8 meters above block
set {_location} to location of targeted block
set {coinspawner::%{_location}%} to {_location}
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
wait 2 tick
stop
if {isspanwer::%{_owner}%} is true:
cancel event
send "&bPCNW &9» &aHer adaya en fazla 1 adet koyulabilir."
stop
on break of chest:
if {coinspawner::%location of targeted block%} is set:
cancel event
set block to air
delete holo object "%event-block's location%"
remove location of targeted block from {coinspawner::*}
clear {coinspawner::%location of targeted block%}
give 1 chest named "&bPCNW &9» &eCoin Spawner" to player
set {_owner} to asb owner of island at location of player
delete {isspanwer::%{_owner}%}
every 10 second:
loop {coinspawner::*}:
set {_owner} to asb owner of island at loop-value
if {_owner} is online:
add 1 prismarine crystals named "&eCoin" to inventory of block at loop-value
command /CoinSpawner:
trigger:
{cspw.%player%} isn't set:
set {cspw.%player%} to true
give 1 chest named "&bPCNW &9» &eCoin Spawner" to player
send "&bPCNW &9» &eCoin &6Spawner &abaşarıyla alındı."
else:
send "&bPCNW &9» &cBu eşyayı sadece 1 kere alabilirsin."
Last edited: