carry_command_carry: debug: false type: command name: carry description: Carry another player on your shoulders! usage: /carry [who?] permission: carry.command.carry tab completions: 1: ].parse[name]> script: - if != player: - narrate "<&c>Please run this command as a player." - stop - if !: - narrate "<&c>You're already carrying someone!" - stop - define target - if <[target]> == null: - define target ].if_null[null]> - if <[target]> == null: - narrate "<&c>Please look at the player to carry or specify their username." - stop - else: - if <[target].location.distance[]> > 5: - narrate "<&c>That player is too far away!" - stop - if <[target].is_npc>: - narrate "<&c>Please look at the player to carry or specify their username." - stop - if <[target]> == : - narrate "<&c>You cannot carry yourself!" - stop - if <[target].is_inside_vehicle>: - narrate "<&c>This player is already being carried!" - stop - define player - clickable usages:1 until:10s save:carry: - if !: - narrate "<&c>That player is already carrying someone!" - stop - if <[target].is_inside_vehicle>: - narrate targets:<[target]> "<&c>You're already being carried!" - stop - adjust <[player]> passengers:<[player].passengers.include[<[target]>]> - narrate format:formats_prefix "Sent a carry request to <&e>]>" # - narrate format:formats_prefix targets:<[target]> "<&e>]> <&7> would like to carry you." - narrate targets:<[target]> "<&l>[ACCEPT]].on_click[]>" carry_command_uncarry: debug: false type: command name: uncarry description: Stop carrying someone. usage: /uncarry permission: carry.command.uncarry tab completions: 1: script: - if != player: - narrate "<&c>Please run this command as a player." - stop - if : - narrate "<&c>You're not carrying anyone!" - stop - adjust passengers: