Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if {dview.%arg 1%} is not set:
- message "8[&eInsane&8] &cDisable view for %arg 1%."
- set {dview.%arg 1%} to true
- command /view <player>:
- permission: view.view
- trigger:
- message "8[&eInsane&8] &7Player is being checked!"
- wait 5 ticks
- if {dview.%arg 1%} is true:
- message "8[&eInsane&8] &cThis player is hidden."
- else:
- set {target.%player%} to arg 1
- wait 1 tick
- open chest with 5 rows named "%arg 1%" to player
- set {_playerinv} to arg 1
- set {_slot} to 0
- loop 36 times:
- set {view.%arg 1%.%{_slot}%} to slot {_slot} of arg 1's inventory
- add 1 to {_slot}
- set {_slot} to 0
- set {_slotmenu} to 9
- wait 1 tick
- loop 36 times:
- format slot {_slotmenu} of player with {view.%arg 1%.%{_slot}%} to be unstealable
- add 1 to {_slot}
- add 1 to {_slotmenu}
- set {_health.%arg 1%} to arg 1's health
- set {hunger.%arg 1%} to arg 1's hunger
- set {armorview.helmet.%arg 1%} to arg 1's helmet
- set {armorview.chestplate.%arg 1%} to arg 1's chestplate
- set {armorview.leggings.%arg 1%} to arg 1's leggings
- set {armorview.boots.%arg 1%} to arg 1's boots
- set {effects.%arg 1%::*} to all of the active potion effects on arg 1
- if arg 1's gamemode is survival:
- format slot 3 of player with 20 glistering melon named "&cPlayer health points" with lore "&6%{_health.%arg 1%}% ?" to be unstealable
- else:
- format slot 3 of player with 20 glistering melon named "&cPlayer health points" with lore "&6Creative." to be unstealable
- if arg 1's gamemode is survival:
- if {hunger.%arg 1%} = 10:
- format slot 4 of player with 20 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 9.5:
- format slot 4 of player with 19 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 9:
- format slot 4 of player with 18 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 8.5:
- format slot 4 of player with 17 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 8:
- format slot 4 of player with 16 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 7.5:
- format slot 4 of player with 15 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 7:
- format slot 4 of player with 14 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 6.5:
- format slot 4 of player with 13 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 6:
- format slot 4 of player with 12 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 5.5:
- format slot 4 of player with 11 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 5:
- format slot 4 of player with 10 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 4.5:
- format slot 4 of player with 9 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 4:
- format slot 4 of player with 8 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 3.5:
- format slot 4 of player with 7 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 3: to
- format slot 4 of player with 6 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 2.5:
- format slot 4 of player with 5 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 2:
- format slot 4 of player with 4 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 1.5:
- format slot 4 of player with 3 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 1:
- format slot 4 of player with 2 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 0.5:
- format slot 4 of player with 1 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if {hunger.%arg 1%} = 0:
- format slot 4 of player with 1 steak named "&ePlayer food points" with lore "&7" to be unstealable
- else:
- format slot 4 of player with 20 steak named "&ePlayer food points" with lore "&7" to be unstealable
- if arg 1's gamemode is survival:
- format slot 2 of player with 4 diamond chestplate named "&cPlayer armor" to close then run [make player execute command "armorview %arg 1%"]
- else:
- format slot 2 of player with 4 diamond chestplate named "&cPlayer armor" to close then run [make player execute command "armorview %arg 1%"]
- format slot 6 of player with 2 paper named "&eUpdate" with lore "&7" to close then run [make player execute command "vreload"]
- if arg 1 doesn't have speed:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has speed:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have slowness:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has slowness:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have haste:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has haste:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have mining fatigue:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has mining fatigue:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have strength:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has strength:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have instant health:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has instant health:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have instant damage:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has instant damage:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have jump boost:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has jump boost:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have nausea:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has nausea:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have regeneration:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has regeneration:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have resistance:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has resistance:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have fire resistance:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has fire resistance:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have water breathing:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has water breathing:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have invisibility:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has invisibility:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have blindness:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has blindness:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have night vision:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has night vision:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have hunger:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has hunger:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have weakness:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has weakness:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have poison:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has poison:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- if arg 1 doesn't have wither:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
- if arg 1 has wither:
- format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
- stop
- clear {effects.%arg 1%::*}
- command /vreload:
- permission: view.view
- trigger:
- wait 2 ticks
- make console execute command "sk reload Inventory"
- command /aview <player>:
- permission: view.view
- trigger:
- open chest with 1 row named "%arg 1%" to player
- wait 2 tick
- set {armor.%arg 1%.1} to helmet of arg 1
- set {armor.%arg 1%.2} to chestplate of arg 1
- set {armor.%arg 1%.3} to leggings of arg 1
- set {armor.%arg 1%.4} to boots of arg 1
- format slot 0 of player with {armor.%arg 1%.1} to be unstealable
- format slot 1 of player with {armor.%arg 1%.2} to be unstealable
- format slot 2 of player with {armor.%arg 1%.3} to be unstealable
- format slot 3 of player with {armor.%arg 1%.4} to be unstealable
- format slot 7 of player with 1 paper named "&cUpdate" to close then run [make player execute command "armorview %arg 1%"]
- format slot 8 of player with 1 redstone named "&cBack" to close then run [make player execute command "review %arg 1%"]
- clear {target.%player%}
- command /armorview <player>:
- permission: view.view
- trigger:
- wait 2 ticks
- make player execute command "aview %arg 1%"
- command /review <player>:
- permission: view.view
- trigger:
- wait 2 ticks
- make player execute command "view %arg 1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement