Ap.sk

Created by Neelix_bear

Other available versions. Ordered by newest to oldest versions:

Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.

on mine:
    if gamemode of player is survival:
        if event-world is "%{world::*}%":
            clear drops
            set {_drop::*} to event-block's drops
            set {_fortune} to the level of fortune on player's tool
            set {_no_bonus_chance} to 0 / ({_fortune} + 1)
            set {_rand_pick} to a random number between 1 and 1
            set {_amount} to 1
            if {_rand_pick} is greater than {_no_bonus_chance}:
                if {_fortune} is set:
                    set {_amount} to a random number between ({_fortune} + 1) and ({_fortune} + 1)
            if {genblocks::*} contains type of event-block:
                if event-block is not any ore:
                    set {_it} to "%{_amount}% %type of event-block%" parsed as itemtype
                    if player has enough space for {_it}:
                        set {_i} to "%type of event-block%" parsed as item
                        give {_amount} of {_i} to player
                    else:
                        send "&cYour inventory seems to be full!" to player
                else:
                    if "%{_drop::*}%" contains "raw":
                        if event-block is not copper ore:
                            set {_s::*} to "%{_drop::*}%" split at " "
                            set {_it} to "%{_amount}% %{_s::2}% ingot" parsed as itemtype
                            set {_i} to "%{_s::2}% ingot" parsed as item
                        else:
                            set {_s::*} to "%{_drop::*}%" split at " "
                            set {_it} to "%{_amount}% %{_s::3}% ingot" parsed as itemtype
                            set {_i} to "%{_s::3}% ingot" parsed as item
                    else:
                        set {_it} to "%{_amount}% %{_drop::*}%" parsed as itemtype
                        set {_i} to "%{_drop::*}%" parsed as item
                    if player has enough space for {_it}:
                        give {_amount} of {_i} to player
                    else:
                        send "&cYour inventory seems to be full!" to player	
                    if "%{_drop::*}%" contains "Ancient Debris":
                        set {_i} to "Netherite ingot"
                        give {_amount} of {_i} to player
                    else if "%{_drop::*}%" contains "Raw Gold":
                        set {_i} to "Gold Ingot"
                        give {_amount} of {_i} to player

command /modifygenblocks [<text>]:
    permission: server.modifygenblocks
    permission message: &cYou do not have permission to execute this command.
    trigger:
        if target block of player is set:
            if target block of player is not air:
                if {genblocks::*} does not contain type of target block of player:
                    add type of target block of player to {genblocks::*}
                    send "&aAdded this block to the list!" to player
                else:
                    remove type of target block of player from {genblocks::*}
                    send "&cRemoved this block from the list!" to player
            else:
                send "&cHmm... I agree, it's a nice view. Just not what I'm looking for however." to player
on script load:
    if {genblocks::*} is not set:
        set {genblocks::*} to oak log, stone, coal ore, iron ore, diamond ore, emerald ore, nether quartz ore, sculk, ancient debris, amethyst block, lapis ore, lapis block, emerald block, netherite block, copper block, diamond block, gold block, iron block, dried kelp block, prismarine bricks, sponge, sea lantern and conduit
on script load:
    if {world::*} is not set:
        set {world::*} to world
command /apsetworld <text>:
    aliases: /apworldname
    permission: ap.world
    usage: /apworldname <yourworldname>
    trigger:
        set {world::*} to arg-1