#============================[Commandes et permissions]===============================#
#/invview <joueur>: Permet de voir l'inventaire, la vie, la faim etc... du joueur. #
#/invhide <joueur>: Permet de bloquer ou débloquer l'accès de l'inventaire du joueur. #
#_____________________________============.============_______________________________#
#Permission de /invview: invview.view #
#Permission de /invhide: invview.hide #
#=====================================================================================#
command /invhide <player>:
permission: invview.hide
trigger:
if {target.hide.%arg 1%} is false:
message "&2[invView]&4 Mode caché activé pour %arg 1%"
set {target.hide.%arg 1%} to true
else:
message "&2[invView]&4 Mode caché desactivé pour %arg 1%"
set {target.hide.%arg 1%} to false
if {target.hide.%arg 1%} is not set:
message "&2[invView]&4 Mode caché activé pour %arg 1%"
set {target.hide.%arg 1%} to true
command /invview <player>:
permission: invview.view
trigger:
wait 1 tick
if {target.hide.%arg 1%} is true:
message "&2[invView]&4 Ce joueur ne peux pas être visionné!"
else:
set {target.%player%} to arg 1
open chest with 6 rows named "&2%arg 1%" to player
set {_playerinv} to arg 1
set {_slot} to 0
loop 36 times:
set {invview.%arg 1%.%{_slot}%} to slot {_slot} of arg 1's inventory
add 1 to {_slot}
set {_slot} to 0
set {_slotmenu} to 18
wait 1 tick
loop 36 times:
format slot {_slotmenu} of player with {invview.%arg 1%.%{_slot}%} to close
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 4 of player with arg 1's skull named "&6&l%arg 1%> &4%{_health.%arg 1%}% ❤" with lore "&c&k[]&r&4Inventaire&c&k[]-" to close
else:
format slot 4 of player with arg 1's skull named "&6&l%arg 1%> &4❤ Immortel ❤" with lore "&c&k[]&r&4Inventaire&c&k[]-" to close
if arg 1's gamemode is survival:
if {hunger.%arg 1%} = 10:
format slot 14 of player with 10 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 9.5:
format slot 14 of player with 10 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 9:
format slot 14 of player with 9 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 8.5:
format slot 14 of player with 9 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 8:
format slot 14 of player with 8 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 7.5:
format slot 14 of player with 8 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 7:
format slot 14 of player with 7 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 6.5:
format slot 14 of player with 7 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 6:
format slot 14 of player with 6 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 5.5:
format slot 14 of player with 6 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 5:
format slot 14 of player with 5 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 4.5:
format slot 14 of player with 5 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 4:
format slot 14 of player with 4 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 3.5:
format slot 14 of player with 4 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 3:
format slot 14 of player with 3 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 2.5:
format slot 14 of player with 3 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 2:
format slot 14 of player with 2 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 1.5:
format slot 14 of player with 2 raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 1:
format slot 14 of player with raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 0.5:
format slot 14 of player with raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
if {hunger.%arg 1%} = 0:
format slot 14 of player with raw chicken named "&a&lFaim:&r &6%{hunger.%arg 1%}%" to close
else:
format slot 14 of player with raw chicken named "&a&lFaim:&r &6Illimité!" to close
if arg 1's gamemode is survival:
format slot 12 of player with iron chestplate named "&a&lArmure" with lore "&6%{armorview.helmet.%arg 1%}%||&6%{armorview.chestplate.%arg 1%}%||&6%{armorview.leggings.%arg 1%}%||&6%{armorview.boots.%arg 1%}%" to close
else:
format slot 12 of player with iron chestplate named "&a&lArmure" with lore "On s'en fout, il est en créa" to close
format slot 8 of player with red wool named "&c&lActualiser" to close then run [make player execute command "invreload"]
if arg 1 doesn't have speed:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has speed:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have slowness:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has slowness:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have haste:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has haste:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have mining fatigue:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has mining fatigue:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have strength:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has strength:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have instant health:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has instant health:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have instant damage:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has instant damage:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have jump boost:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has jump boost:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have nausea:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has nausea:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have regeneration:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has regeneration:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have resistance:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has resistance:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have fire resistance:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has fire resistance:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have water breathing:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has water breathing:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have invisibility:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has invisibility:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have blindness:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has blindness:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have night vision:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has night vision:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have hunger:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has hunger:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have weakness:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has weakness:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have poison:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has poison:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
if arg 1 doesn't have wither:
format slot 13 of player with glass bottle named "&9&lPotions" with lore "&9&lPas d'effets!" to close
if arg 1 has wither:
format slot 13 of player with water bottle named "&9&lPotions" with lore "&9&lEffets: &6%{effects.%arg 1%::*}%" to close
stop
clear {effects.%arg 1%::*}
command /invreload:
permission: invview.reload
trigger:
wait 2 ticks
make player execute command "invview %{target.%player%}%"
clear {target.%player%}
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.
Question
THEXenotix
J'ai un problème avec mon skript 1.8 :
5 réponses à cette question
Messages recommandés