Not Working True Skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SafaYVS

Member
Jun 22, 2018
30
0
0
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:
Status
Not open for further replies.