VirtualChest - Provide virtual chest GUIs for menus like ChestCommands


#124

This method doesn’t work, unless I am setting this up wrong? I tried doing exactly what you have but still nothing.


#125

Maybe, send your config. And your logs.


#127

Also tried solution with RandomByte and it isn’t working,
@ZZZZ can u help?

Also, can we add option that will execute a command if you dont have required item for primary action ?
PrimaryAction {
Command = “cost-item: 1; console: pokeedit %player% 1 nature:7; console: say Sucessfully changed §a%trainer_team_1% Nature to §aAdamant”
HandheldItem {
SearchInventory = true
ItemType = “byte-item:Adamant_Token”
}
KeepInventoryOpen = false
},
{
Command = “say §cYou §cdon’t §chave §cenough §cMoney”
KeepInventoryOpen = true
}

this is not working


#129

Is there a way to use cost-item in requirements? Im trying to do a shop where you sell 27 stacks of stone and when you click it, it will sell even if you only have 1 stack. Thats because it doesnt check if you have 27 stacks in your inventory. Is there a way to check for this? Something thats like in the gist I sent?

I know theres a way to do it if you loop (like your wheat example). But the problem with that example is that it just spams 27 messages for saying you sold wheat.


#131

Consider adding the link to your discord support guild: https://discord.gg/TftabgG


#132

is it possible to set the primary click to do a list of command like this
PrimaryAction {
Command = " tellraw %player_name% {“text”:"",“extra”:[{“text”:“Pixelmon Servers”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://pixelmonservers.com/server/GQ2rqy1v/cosmic-unity-pixelmon"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Minecraft-MP”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://minecraft-mp.com/server-s221435"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Pixelmon Server List”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://pixelmon-server-list.com/server/185"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Planet Minecraft”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://www.planetminecraft.com/server/cosmic-unity-4302692/"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“MC-Servers”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://mc-servers.com/details/3098/"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“MinecraftList”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://minecraftlist.org/server/12344"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Minecraft_Tracker”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://minecraft-tracker.com/server/5917/"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Minecraft Servers”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:"https://minecraftservers.org/server/550390"}}]}"

if it is how do i make it work?


#133

im trying to set multiple commands to one click like this
PrimaryAction {
Command = " tellraw %player_name% {“text”:"",“extra”:[{“text”:“Pixelmon Servers”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://pixelmonservers.com/server/GQ2rqy1v/cosmic-unity-pixelmon"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Minecraft-MP”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://minecraft-mp.com/server-s221435"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Pixelmon Server List”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://pixelmon-server-list.com/server/185"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Planet Minecraft”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://www.planetminecraft.com/server/cosmic-unity-4302692/"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“MC-Servers”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://mc-servers.com/details/3098/"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“MinecraftList”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://minecraftlist.org/server/12344"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Minecraft_Tracker”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:“https://minecraft-tracker.com/server/5917/"}}]}"
" tellraw %player_name% {“text”:”",“extra”:[{“text”:“Minecraft Servers”,“color”:“red”,“clickEvent”:{“action”:“open_url”,“value”:"https://minecraftservers.org/server/550390"}}]}"


#134

Can I edit what will happen if player dont have enough requirements? I can remember I used to play a server that use VirtualChest and If I dont have enough requirements for that they will add one more line to lore of it that said “You dont have enough money” instead of disappearing and whats the format for Permission Requirements?


#135

A new version has been released for VirtualChest, it is available for download here.


  • Updated VirtualChestAPI for force updates of chest GUIs
  • Updated VirtualChestAPI for VirtualChestActionExecutors
  • Added a child command named update for force updates of chest GUIs

#136

A new version has been released for VirtualChest, it is available for download here.


  • Add two options named CommandBefore and CommandAfter for submitting actions which ignore repetitions
  • Add a new option named Action to make configurations more clean if both PrimaryAction and SecondaryAction are the same