Nd_ Posted July 28, 2019 Share Posted July 28, 2019 Code: on right click: if player is holding a nether star named "&5Potion Menu" with lore "&5Get your potions": player is in world "ul_KitPVP": open virtual chest inventory with size 1 named "&5Potions" to player format gui slot 1 of player with splash potion of harming named "Splash Potion Of Harming" with lore "&5You have: %{%player's uuid%.splashpotionofharming}% Splash Potions Of Harming" to run : if {%player's uuid%.splashpotionofharming} is less than 1: message "&4You don't have any Splash Potions Of Harming" else: give a splash potion of harming to the player subtract 1 from {%player's uuid%.splashpotionofharming} close player's inventory Errors: Link to comment Share on other sites More sharing options...
crazymarty Posted July 29, 2019 Share Posted July 29, 2019 3 hours ago, Nd_ said: Code: on right click: if player is holding a nether star named "&5Potion Menu" with lore "&5Get your potions": player is in world "ul_KitPVP": open virtual chest inventory with size 1 named "&5Potions" to player format gui slot 1 of player with splash potion of harming named "Splash Potion Of Harming" with lore "&5You have: %{%player's uuid%.splashpotionofharming}% Splash Potions Of Harming" to run : if {%player's uuid%.splashpotionofharming} is less than 1: message "&4You don't have any Splash Potions Of Harming" else: give a splash potion of harming to the player subtract 1 from {%player's uuid%.splashpotionofharming} close player's inventory Errors: it is like this: format gui slot 1 of player with any item named "name" with lore "item lore" to run: *your code here. After 4 spaces* command /giveinfo: trigger: send "--------------------------------------------" send "IGN: crazymarty" send "I am a decent skripter." send "Discord: crazymarty#1802" send "--------------------------------------------" Link to comment Share on other sites More sharing options...
Siriz-2 Posted April 11, 2020 Share Posted April 11, 2020 (edited) on right click: if player is holding a nether star named "&5Potion Menu" with lore "&5Get your potions": player is in world "ul_KitPVP": open virtual chest inventory with size 1 named "&5Potions" to player format gui slot 1 of player with splash potion of harming named "Splash Potion Of Harming" with lore "&5You have: %{%player's uuid%.splashpotionofharming}% Splash Potions Of Harming" to run : if {%player's uuid%.splashpotionofharming} is less than 1: message "&4You don't have any Splash Potions Of Harming" else: give a splash potion of harming to the player subtract 1 from {%player's uuid%.splashpotionofharming} close player's inventory Edited April 11, 2020 by server5484 Link to comment Share on other sites More sharing options...
zKoro Posted April 11, 2020 Share Posted April 11, 2020 Locked due to necroposting ⮞ Junior Mod (01/04/2020) - Resigned ⮜ ⮞ Discord » Koronotchi#0001 ⮜⮞ Minecraft Username » Koronotchi ⮜ Link to comment Share on other sites More sharing options...
Recommended Posts