How to create your own inventory games

Jan 5, 2017
How to create your own inventory games
  • In miniboard games you can create your own games with easy API in java

    Follow these steps:
    1. Create a java project
    2. Implement MiniBoardGames {version}.jar like library
    3. Create a class with the name of your game
    4. Extend that class of mx.com.rodel.games.InventoryGame
    5. Implement all unplemented methods and fill it
    Here is a lot of help with the info methods:

    • getName()
      • This is the name of your game
    • getMinPlayers()
      • Minimum players can play this game (1 for singleplayer games)
    • getMaxPlayers()
      • Maximum players can play this game (1 for singleplayer games)
    • getItemIcon()
      • Define the icon in menu
    • getMinigameColor()
      • This color is used for display name getMinigameColor()+getName()
    • getType()
      • You don't go to use it for games, it's only for MapGame & InventoryGame class
    Now you can set items with sendItem(UUID player, ItemStack item) or sendToAllClients(ItemStack itemstack)
  • Loading...
  • Loading...