New| Added optional chances to recipes when crafting (0-100%)
If you're updating, please add the following to your config.yml
Code (YAML):
# Should recipes have a chance to successfully craft (if false, all recipes will craft 100% of the time) # if true, you can specify the success chance with /recipe setchance <recipe-name> <chance> enable-success-chance: true
You also need to change the sound section in the config.yml to the following
Code (YAML):
# Settings related to sounds Sound: # Should a sound be played when a player crafts a recipe enabled: true
# What sound should be unsuccessful played? https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html unsuccessful-sound-played: 'BLOCK_NETHER_BRICKS_FALL'
# What sound should be played when the recipe succeeds? https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html successful-sound-played: 'ENTITY_PLAYER_LEVELUP'
Lastly, you need to add the following to your messages.yml file
Code (YAML):
General: recipe-not-successful: "&cThe recipe you tried to craft did not succeed!" Usage:
setchance-command: "&cUsage: /recipe setchance <recipe name> <chance>"
Note: this update includes an option to set the chance of your recipe using the /recipe info <recipe name> GUI. It also includes a new command (/recipe setchance) that you can use to set the chance of the recipe.
New| Added optional permissions to recipes when crafting
If you're updating, please add the following to your config.yml
Code (YAML):
permissions: # Should all recipes be given a permission by default if they don't have one? use-default: false
# Default permission for recipes without a permission default-permission: "recipe.craft" # Should a message be sent when the player tries to craft a recipe without permission tell-no-permission: false