Minecraft Skill System
- 4 Devlogs
- 19 Total hours
I am building a Minecraft plugin which adds a skill system to Minecraft.
I am planing on adding rewards for a higher level.
I am building a Minecraft plugin which adds a skill system to Minecraft.
I am planing on adding rewards for a higher level.
I noticed that killing a mob didn’t give combat xp beacause the path to the json where the monser to xp was stored wasn’t read right. I also added a few mobs to the list since a few were missing.
I added a reward for mining, every level yo get 30% chance to break another block, so at level 30 you have a 900% chance and break 9 blocks at once.
I also added two Commands, one that gives you XP, and another that sets the level to a specific level, which if its mining also effects the chance to break multible blocks.
I have created a command that opens a custom Inventory, in which you can see the current level and the xp needed until the next level up. Also made it so item can not be taken out of the inventory.
Going forward i also want to make commands to give yourself xp.
I am building a Minecraft Plugin which adds multiple skills with corresponding XP. So far i have created a player class which contains the amount of XP a player has collected, it also has a method to write the players XP into a JSON file inorder to keep track of the XP even when the server shutsoff, the writing happens when a player logs off and when he logsback in the data gets loaded from the file into a new Player objekt created by the Player manager. The Player Manager keeps track of every play currently loged in on the server.
I have also started on creating the properties files in which the amount of XP gained for certain blocks mined, crops broken or crops harvested. Fitting to the files I have also written 2 listeners one for detecting when a block/crop has been broken and one to detect when a crop has been harvested, so right clicked. They add the amount of XP, which is defined in the properties files, to the player current XP count for the corresponding skill.