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.
options:
prefix: &3&lMod&5&lMode &8>>
command /modmode [<text>] [<player>]:
trigger:
if arg-1 is "on", "enable" or "activate":
if arg-2 is not set:
if player has permission "modmode.on":
if {modmode::%player%} is not set:
set {modmode::%player%} to false
if {modmode::%player%} is false:
set {modmode::%player%} to true
set {_slot} to 0
loop 36 times:
set {inventory::%{_slot}%::%player%} to slot {_slot} of player
add 1 to {_slot}
set {inventory::helmet::%player%} to player's helmet
set {inventory::chestplate::%player%} to player's chestplate
set {inventory::leggings::%player%} to player's leggings
set {inventory::boots::%player%} to player's boots
wait 1 tick
clear player's inventory
set player's helmet to air
set player's chestplate to air
set player's leggings to air
set player's boots to air
if {vanish::%player%} is not set:
set {Vanish::%player%} to "&cFalse"
set slot 0 of player to clock named "&3Vanish &7(&8Rightclick on a player&7)" with lore "&7Vanish: %{vanish::%player%}%"
set slot 4 of player to player head named "&cPlayer Options &7(&8Rightclick on a player&7)" with lore "&7Set the options&8:||&7gamemode&8, &7mute state&8, &7ban state&8, &7kick and more&8!"
set slot 8 of player's inventory to book named "&aInventory viewer &7(&8Rightclick on a player&7)" with lore "&7Rightclick on a &9player &7view your inventory&8!"
send "{@prefix} &aYou entred in &3Mod&5Mode&8!"
stop
else:
send "&c&lError &8>> &cYou already are in &3Mod&5Mode&8!"
stop
else:
send "&c&lError &8>> &cYou don't have permission to this&8!"
stop
else:
if player has permission "modmode.on.other":
if {modmode::%arg 2%} is not set:
set {modmode::%arg 2%} to false
if {modmode::%arg 2%} is false:
set {modmode::%arg 2%} to true
set {_slot} to 0
loop 36 times:
set {inventory::%{_slot}%::%arg 2%} to slot {_slot} of arg-2
add 1 to {_slot}
set {inventory::helmet::%arg 2%} to helmet of arg-2
set {inventory::chestplate::%arg 2%} to chestplate of arg-2
set {inventory::leggings::%arg 2%} to leggings of arg-2
set {inventory::boots::%arg 2%} to boots of arg-2
wait 1 tick
clear inventory of arg-2
set helmet of arg-2 to air
set chestplate of arg-2 to air
set leggings of arg-2 to air
set boots of arg-2 to air
set slot 0 of arg-2 to clock named "&3Vanish &7(&8Rightclick on a player&7)" with lore "&7Vanish: &cFalse"
set slot 4 of arg-2 to player head named "&cPlayer Options &7(&8Rightclick on a player&7)" with lore "&7Set the options&8:||&7gamemode&8, &7mute state&8, &7ban state&8, &7kick and more&8!"
set slot 8 of arg-2 to book named "&aInventory viewer &7(&8Rightclick on a player&7)" with lore "&7Rightclick on a &9player &7view your inventory&8!"
send "{@prefix} &aYou make &6%arg 2%'s &aenter to &3Mod&5Mode&8!" to player
send "{@prefix} &6%player%'s &amaked you enter to &3Mod&5Mode&8!" to arg-2
stop
else:
send "&c&lError &8>> &4%arg 2%'s &calready are in &3Mod&5Mode&8!"
stop
else:
send "&c&lError &8>> &cYou don't have permission to this&8!"
stop
else if arg-1 is "off", "disable" or "desactivate":
if arg-2 is not set:
if player has permission "modmode.off":
if {modmode::%player%} is true:
clear player's inventory
set {modmode::%player%} to false
if {vanish::%player%} is "&aTrue":
set {vanish::%player%} to "&cFalse"
reveal player from all players
set {_slot} to 0
loop 36 times:
set slot {_slot} of player to {inventory::%{_slot}%::%player%}
add 1 to {_slot}
set player's helmet to {inventory::helmet::%player%}
set player's chestplate to {inventory::chestplate::%player%}
set player's leggings to {inventory::leggings::%player%}
set player's boots to {inventory::boots::%player%}
send "{@prefix} &aYou exit of &3Mod&5Mode&8!"
stop
else:
send "&c&lError &8>> &cYou don't are in &3Mod&5Mode&8!"
stop
else:
send "&c&lError &8>> &cYou don't have permission to this&8!"
else:
if player has permission "modmode.off.other":
if {modmode::%arg 2%} is true:
clear inventory of arg-2
set {modmode::%arg 2%} to false
if {vanish::%arg 2%} is "&aTrue":
set {vanish::%arg 2%} to "&cFalse"
reveal arg-2 from all players
set {_slot} to 0
loop 36 times:
set slot {_slot} of arg-2 to {inventory::%{_slot}%::%arg 2%}
add 1 to {_slot}
set helmet of arg-2 to {inventory::helmet::%arg 2%}
set chestplate of arg-2 to {inventory::chestplate::%arg 2%}
set leggings of arg-2 to {inventory::leggings::%arg 2%}
set boots of arg-2 to {inventory::boots::%arg 2%}
send "{@prefix} &aYou make &6%arg 2%'s exit of &3Mod&5Mode&8!" to player
send "{@prefix} &6%player%'s &amaked you exit of &3Mod&5Mode&8!" to arg-2
stop
else:
send "&c&lError &8>> &4%arg 2%'s &cdon't are in &3Mod&5Mode&8!"
else:
send "&c&lError &8>> &cYou don't have permission to this&8!"
on rightclick:
if {modmode::%player%} is true:
if player is holding a clock named "&3Vanish &7(&8Rightclick on a player&7)" with lore "&7Vanish: &cFalse":
if player has permission "modmode.vanish":
set {vanish::%player%} to "&aTrue"
set line 1 of lore of player's tool to "&7Vanish: %{vanish::%player%}%"
hide player from all players
send "{@prefix} &aChanged you &9Vanish Mode &ato &6true&8!"
stop
else:
send "&c&lError &8>> &cYou don't have permission to this&8!"
stop
if player is holding a clock named "&3Vanish &7(&8Rightclick on a player&7)" with lore "&7Vanish: &aTrue":
if player has permission "modmode.vanish":
set {vanish::%player%} to "&cFalse"
set line 1 of lore of player's tool to "&7Vanish: %{vanish::%player%}%"
reveal player from all players
send "{@prefix} &aChanged you &9Vanish Mode &ato &6false&8!"
stop
else:
send "&c&lError &8>> &cYou don't have permission to this&8!"
stop
on rightclick on player:
if {modmode::%player%} is true:
if player is holding a book named "&aInventory viewer &7(&8Rightclick on a player&7)" with lore "&7Rightclick on a &9player &7view your inventory&8!":
if player has permission "modmode.checkinv":
open clicked entity's inventory to player
if inventory name of player's current inventory contains "Inventory":
set inventory name of player's current inventory to "&6&l%clicked entity's name%'s &aInventory&8!"
send "{@prefix} &aOpened &6%clicked entity's name%'s inventory&8!" to player
stop
else:
send "&c&lError &8>> &cYou don't have permission to this&8!"
stop
if player is holding a player head named "&cPlayer Options &7(&8Rightclick on a player&7)" with lore "&7Set the options&8:||&7gamemode&8, &7mute state&8, &7ban state&8, &7kick and more&8!":
if player has permission "modmode.playeroptions":
open chest with 3 rows named "&e&l%clicked entity's name%'s &5options&8!" to player
set {_slot} to 0
loop 26 times:
format slot {_slot} of player with blue glass pane named "&9&lGlass" to be unstealable
add 1 to {_slot}
stop
else:
send "&c&lError &8>> &cYou don't have permission to this&8!"
stop
on place:
if {modmode::%player%} is true:
if player is holding a player head named "&cPlayer Options &7(&8Rightclick on a player&7)" with lore "&7Set the options&8:||&7gamemode&8, &7mute state&8, &7ban state&8, &7kick and more&8!":
cancel event
on drop:
if {modmode::%player%} is true:
cancel event
on pickup:
if {modmode::%player%} is true:
cancel event
on inventory click:
if {modmode::%player%} is true:
if event-slot is 0, 4 or 8:
cancel event