This is a minecraft plugin for a minigame called Spartan School
Fight off waves of enemies with your friends! Purchase upgrades from the shop and level up your gear. Work together to fend off enemies as the waves get more difficult as you progress.
-
Create a new item class in the shop package. New items will inherit from ShopItem and new entities that fight for you will inherit from ShopEntity. If the item or entity is simply an already existing item with just a material and a price, you can skip this step and map the item in the SpartanShop to a new ShopItem by filling out the constructor in line.
-
Create a new entry in the SpartanShop item map. This is the item that will be added to the players inventory when they try to purchase the item.
-
Create a new item in the ShopCommand where the inventory is created and shown to the player. Use the itemFactory to quickly give a Material icon to be shown, a name of the item, and lore.
-
Listen for the item to be clicked on in the ShopListener OnClick method. When the item is clicked on, pass a purchase command down to the GameLogic class to purchase the item.
Item | Price |
---|---|
Shield | 5 |
Snowball | 1 |
Snowman | 2 |
Wolf | 4 |
Iron Golem | 10 |
- Implement item shop GUI
- Fix the mob death counter