Home›Java›Mods›InventoryGUIs
So, what is it?
You always wanted a GUI like a teleporter or something like that? Or want to broadcast messages easy an quick via a GUI? That's, what it does with it's own smart script-language!

But... how actually should I use it?
It's not very difficult - drop the plugin into your plugins folder and restart it. In your Plugin-Folder should be a new folder called 'InventoryGUI'. Go right into it and then into 'inventorys'. So... you want to have a new GUI? It's just that easy:
  1. Create a new file called [invname].json (replace [invname] with whatever you want)
  2. Start up with basic brace: '{}', thats where the rest goes into.
  3. Basic Json Syntax: "point":value
Let's start with a example code:
Spoiler: Code
Code (PHP):
{
    "name" : "&7Test-&3Inventory" , //Inventory Name (header)
    "lines" : 3 , //Line count
    "slots" : [ //here is, where it gets a little bit more complicated
        {
            "slot" : 11 , //Slot, in wich the item should be (0-lines*9-1)
            "item" : { //Definition of item
                "name" : "&3Magical diamond" , //Item displayname
                "lore" : [ //Lore - for no lore just do ' "lore:":[] '
                    "&8Can send a &7message &8to you!" //Lore
                ] ,
                "id" : "DIAMOND" //Uppercase name
            } ,
            "onclick" : [ //Code - Lets focus on that later
                "player -> sendMessage['&7You clicked the &3magical &7diamond!'] closeInventory[]" ,
                "event -> setCancelled[]"
            ]
        } ,
        {
            "slot" : 15 , //same as above...
            "item" : {
                "name" : "&3Magical stone" ,
                "lore" : [
                    "&8Can play an &7Effect &8to you!"
                ] ,
                "id" : "STONE"
            } ,
            "onclick" : [
                "player -> playEffect['MOBSPAWNER_FLAMES'] playSound['ARROW_HIT'] closeInventory[]" ,
                "event -> setCancelled[]"
            ]
        }
    ]
}
So, thats basic syntax. In subpoint 'item' you can also define 'subId' and 'id' as a numeric value. Now, lets go over to the code. Syntax is like that:
[object] -> [method] [method] ...
Possible Objects are "player", "item", "event" and "all".

Methods:
Spoiler: player
  • sendMessage[msg] » Example: sendMessage['&7This is a &3Message!']
  • playEffect[effect] » Effects -> Look down » Example: playEffect['MOBSPAWNER_FLAMES']
  • setLevel[level] » Example: setLevel[2]
  • setExp[exp] » Argument: Numeric value in Percent (0 - 1) » Example: setExp['0.3']
  • closeInventory[] » Closes current inventory
  • openInventory[name] » Opens the given Inventory » Example: openInventory['test']
  • setHealth[health] » Example: setHealth['20'] -> Player gets full life
  • playSound[sound] » Sounds -> Look down » Example: playSound['ARROW_HIT']
  • setFoodLevel[level] » Example: setFoodLevel['20']
  • teleport[world, x, y, z] » Example: teleport['lobby', '231', '200', '100']
Spoiler: item
  • setType[type] » Example: setType['DIAMOND']
  • setAmount[amount] » setAmount['20']
  • incementAmound[] » Increments the amount up to the maximum stack size
  • setName[name] » Example: setName['&7magical &3diamond!']
  • setLore[lore, lore, ...] » Example: setLore['&7Row 1', '&8Row 2']
Spoiler: event
  • setCancelled[] » Prevents player from picking the item up from the Inventory
Spoiler: all
  • broadcast[message] » Example: ['&7This is a &3broadcast&7!']
  • playEffect[effect] » -> player
  • playSound[sound] » -> player

Effects:
Spoiler: effects
  • CLICK2
  • CLICK1
  • BOW_FIRE
  • DOOR_TOGGLE
  • EXTINGUISH
  • RECORD_PLAY
  • GHAST_SHRIEK
  • GHAST_SHOOT
  • BLAZE_SHOOT
  • ZOMBIE_CHEW_WOODEN_DOOR
  • ZOMBIE_CHEW_IRON_DOOR
  • ZOMBIE_DESTROY_DOOR
  • SMOKE
  • STEP_SOUND
  • POTION_BREAK
  • ENDER_SIGNAL
  • MOBSPAWNER_FLAMES
  • FIREWORKS_SPARK
  • CRIT
  • MAGIC_CRIT
  • POTION_SWIRL
  • POTION_SWIRL_TRANSPARENT
  • SPELL
  • INSTANT_SPELL
  • WITCH_MAGIC
  • NOTE
  • PORTAL
  • FLYING_GLYPH
  • FLAME
  • LAVA_POP
  • FOOTSTEP
  • SPLASH
  • PARTICLE_SMOKE
  • EXPLOSION_HUGE
  • EXPLOSION_LARGE
  • EXPLOSION
  • VOID_FOG
  • SMALL_SMOKE
  • CLOUD
  • COLOURED_DUST
  • SNOWBALL_BREAK
  • WATERDRIP
  • LAVADRIP
  • SNOW_SHOVEL
  • SLIME
  • HEART
  • VILLAGER_THUNDERCLOUD
  • HAPPY_VILLAGER
  • LARGE_SMOKE
  • ITEM_BREAK
  • TILE_BREAK
  • TILE_DUST

Sounds:
Spoiler: sounds
  • AMBIENCE_CAVE
  • AMBIENCE_RAIN
  • AMBIENCE_THUNDER
  • ANVIL_BREAK
  • ANVIL_LAND
  • ANVIL_USE
  • ARROW_HIT
  • BURP
  • CHEST_CLOSE
  • CHEST_OPEN
  • CLICK
  • DOOR_CLOSE
  • DOOR_OPEN
  • DRINK
  • EAT
  • EXPLODE
  • FALL_BIG
  • FALL_SMALL
  • FIRE
  • FIRE_IGNITE
  • FIZZ
  • FUSE
  • GLASS
  • HURT_FLESH
  • ITEM_BREAK
  • ITEM_PICKUP
  • LAVA
  • LAVA_POP
  • LEVEL_UP
  • MINECART_BASE
  • MINECART_INSIDE
  • NOTE_BASS
  • NOTE_PIANO
  • NOTE_BASS_DRUM
  • NOTE_STICKS
  • NOTE_BASS_GUITAR
  • NOTE_SNARE_DRUM
  • NOTE_PLING
  • ORB_PICKUP
  • PISTON_EXTEND
  • PISTON_RETRACT
  • PORTAL
  • PORTAL_TRAVEL
  • PORTAL_TRIGGER
  • SHOOT_ARROW
  • SPLASH
  • SPLASH2
  • STEP_GRASS
  • STEP_GRAVEL
  • STEP_LADDER
  • STEP_SAND
  • STEP_SNOW
  • STEP_STONE
  • STEP_WOOD
  • STEP_WOOL
  • SWIM
  • WATER
  • WOOD_CLICK
  • BAT_DEATH
  • BAT_HURT
  • BAT_IDLE
  • BAT_LOOP
  • BAT_TAKEOFF
  • BLAZE_BREATH
  • BLAZE_DEATH
  • BLAZE_HIT
  • CAT_HISS
  • CAT_HIT
  • CAT_MEOW
  • CAT_PURR
  • CAT_PURREOW
  • CHICKEN_IDLE
  • CHICKEN_HURT
  • CHICKEN_EGG_POP
  • CHICKEN_WALK
  • COW_IDLE
  • COW_HURT
  • COW_WALK
  • CREEPER_HISS
  • CREEPER_DEATH
  • ENDERDRAGON_DEATH
  • ENDERDRAGON_GROWL
  • ENDERDRAGON_HIT
  • ENDERDRAGON_WINGS
  • ENDERMAN_DEATH
  • ENDERMAN_HIT
  • ENDERMAN_IDLE
  • ENDERMAN_TELEPORT
  • ENDERMAN_SCREAM
  • ENDERMAN_STARE
  • GHAST_SCREAM
  • GHAST_SCREAM2
  • GHAST_CHARGE
  • GHAST_DEATH
  • GHAST_FIREBALL
  • GHAST_MOAN
  • IRONGOLEM_DEATH
  • IRONGOLEM_HIT
  • IRONGOLEM_THROW
  • IRONGOLEM_WALK
  • MAGMACUBE_WALK
  • MAGMACUBE_WALK2
  • MAGMACUBE_JUMP
  • PIG_IDLE
  • PIG_DEATH
  • PIG_WALK
  • SHEEP_IDLE
  • SHEEP_SHEAR
  • SHEEP_WALK
  • SILVERFISH_HIT
  • SILVERFISH_KILL
  • SILVERFISH_IDLE
  • SILVERFISH_WALK
  • SKELETON_IDLE
  • SKELETON_DEATH
  • SKELETON_HURT
  • SKELETON_WALK
  • SLIME_ATTACK
  • SLIME_WALK
  • SLIME_WALK2
  • SPIDER_IDLE
  • SPIDER_DEATH
  • SPIDER_WALK
  • WITHER_DEATH
  • WITHER_HURT
  • WITHER_IDLE
  • WITHER_SHOOT
  • WITHER_SPAWN
  • WOLF_BARK
  • WOLF_DEATH
  • WOLF_GROWL
  • WOLF_HOWL
  • WOLF_HURT
  • WOLF_PANT
  • WOLF_SHAKE
  • WOLF_WALK
  • WOLF_WHINE
  • ZOMBIE_METAL
  • ZOMBIE_WOOD
  • ZOMBIE_WOODBREAK
  • ZOMBIE_IDLE
  • ZOMBIE_DEATH
  • ZOMBIE_HURT
  • ZOMBIE_INFECT
  • ZOMBIE_UNFECT
  • ZOMBIE_REMEDY
  • ZOMBIE_WALK
  • ZOMBIE_PIG_IDLE
  • ZOMBIE_PIG_ANGRY
  • ZOMBIE_PIG_DEATH
  • ZOMBIE_PIG_HURT
  • DIG_WOOL
  • DIG_GRASS
  • DIG_GRAVEL
  • DIG_SAND
  • DIG_SNOW
  • DIG_STONE
  • DIG_WOOD
  • FIREWORK_BLAST
  • FIREWORK_BLAST2
  • FIREWORK_LARGE_BLAST
  • FIREWORK_LARGE_BLAST2
  • FIREWORK_TWINKLE
  • FIREWORK_TWINKLE2
  • FIREWORK_LAUNCH
  • SUCCESSFUL_HIT
  • HORSE_ANGRY
  • HORSE_ARMOR
  • HORSE_BREATHE
  • HORSE_DEATH
  • HORSE_GALLOP
  • HORSE_HIT
  • HORSE_IDLE
  • HORSE_JUMP
  • HORSE_LAND
  • HORSE_SADDLE
  • HORSE_SOFT
  • HORSE_WOOD
  • DONKEY_ANGRY
  • DONKEY_DEATH
  • DONKEY_HIT
  • DONKEY_IDLE
  • HORSE_SKELETON_DEATH
  • HORSE_SKELETON_HIT
  • HORSE_SKELETON_IDLE
  • HORSE_ZOMBIE_DEATH
  • HORSE_ZOMBIE_HIT
  • HORSE_ZOMBIE_IDLE
  • VILLAGER_DEATH
  • VILLAGER_HAGGLE
  • VILLAGER_HIT
  • VILLAGER_IDLE
  • VILLAGER_NO
  • VILLAGER_YES

Errors:
If your configurated Inventory doesn't work or just the code, look in the console and search for a red message wich will tell you, where the error is. If you don't know, whats wrong - ask below ;)

How to open:
You need a command - a json file called 'commands' should be added in your /plugin/InventoryGUI folder. Open it and add some json-code.
Example:
Spoiler: commands.json
PHP:
{
    "commands" : [
        {
            "name" : "test" , // -> /test will open inventory ...
            "inventory" : "test" , //... test
            "permission" : "system.test" , //Permission
            "permissionMessage" : "&cYou don't have permission to execute this command!" , //Message, which is gonna be send, if he hasn't got permission
            "aliases" : [ //Aliases, so
                "te" // -> /te will also work
            ]
        } ,
        {
            "name" : "cookie" , // -> /cookie
            "inventory" : "cookie" // -> Inventory cookie (cookie.json in folder inventorys)
        }
    ]
}

I hope you like the plugin! If you don't understand something feel free to ask in the comments, i'll add it to the explantation then.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

InventoryGUIs is a free Minecraft Java mod. Downloaded 316 times (via Spigot). Download it and open it directly in the game.

Explore more