Paste #122971: Unnamed Denizen Script Paste

Date: 2024/05/23 13:18:35 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


        on player right clicks * with:force_powers:
        - ratelimit <player> 0.05s
        - if <player.flag[inventory]> == player_inv:
            - narrate "currently swapping from playerinv to forceinv"
            - note <player.inventory> as:player_inventory<player.uuid>
            - inventory swap origin:<player.inventory> destination:forcepowers_inv<player.uuid>
            - flag <player> inventory:forcepowers_inv
            - stop

        - if <player.flag[inventory]> == forcepowers_inv:
            - narrate "currently swapping from forceinv to playerinv"
            - note <player.inventory> as:forcepowers_inventory<player.uuid>
            - inventory swap origin:<player.inventory> destination:player_inventory<player.uuid>
            - flag <player> inventory:player_inv
            - stop