HavenBags Recipes - mehboss/CustomRecipes GitHub Wiki
Creating New HavenBags Recipes
All recipes are located in ../plugins/CustomRecipes/recipes
.
To create your own, simply copy any of the template ones, and change their values.
Down below you can find information regarding each config entry.
These recipes are specifically for the plugin HavenBags. (Requires HavenBags v1.25.0 or newer in order to work)
Structure
RecipeName:
Enabled: true
Shapeless: false
Identifier: 'havenbags-custom_boundbag1'
Permission: 'crecipe.recipe.boundbag1'
Item: PLAYER_HEAD
Bag-Texture: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGNiM2FjZGMxMWNhNzQ3YmY3MTBlNTlmNGM4ZTliM2Q5NDlmZGQzNjRjNjg2OTgzMWNhODc4ZjA3NjNkMTc4NyJ9fX0='
Custom-Model-Data: 0
Bag-Size: 3
Can-Bind: true
ItemCrafting:
- 'LLL'
- 'LDL'
- 'LLL'
Ingredients:
D:
Material: DIAMOND
Identifier: none
Amount: 1
Name: 'Diamond Shrine'
L:
Material: 'LEATHER'
Identifier: none
Amount: 2
Name: 'Rough Leather'
Disabled-Worlds: []
Config Values
Recipe Header
RecipeName:
This must be the same as the name of the recipe file, without .yml
.
(CaPs sensitive)
Enabled
Whether or not this recipe is enabled.
Boolean value. true
/ false
Shapeless
Whether the recipe should be Shaped or Shapeless.
Shaped: The recipe must be put exactly the way described in ItemCrafting.
Shapeless: Items can be anywhere inside the crafting table, regardless of shape in ItemCrafting.
Boolean value. true
/ false
Identifier
Unique identification of the custom item.
You MUST keep the identifier prefix "havenbags-" in order for CR to detect that it is a haven bag.
String value. 'havenbags-SampleText'
Permission
If defined, this permission is required in order to craft this recipe.
String value. 'SampleText'
Item
The material of the crafted item.
You can find all accepted materials here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
(Material names may be different in older versions of Minecraft.)
String value. 'SampleText'
Bag-Texture
The texture of the crafted bag.
You can find a plethera of heads to choose from on Minecraft-Heads.
Choose your head, and copy the "Value" down in the section "For Developers".
If this is set empty or 'none', the recipe will take the texture from HavenBag's configuration.
(Only works when Item is set to PLAYER_HEAD)
String value. 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODI4ZDZkMGVhNDY0MjJiYTE0OTAyYzc0M2MwMjRjMGIyNGJlMDYyZTRlYmRlMzA2MzVmYTA3ZjVmNDIzYzA5NCJ9fX0='
Custom-Model-Data
The CustomModelData value of the crafted bag.
Used to specify a specific texture from a custom resourcepack.
If set to 0 it will be ignored.
(Only works when Item is NOT set to PLAYER_HEAD)
Number value. 1234567
Bag-Size
The size of the crafted bag.
Used to specify how many rows of slots the bag should contain.
(if set to 3, the bag would have 27 slots. Cannot be higher or lower than 1-6)
Number value. 3
Can-Bind
Whether the crafted bag can bind.
Used to specify if the bag can be used by everyone, or only the player it binds to.
(if set to false, everyone can use the bag)
Boolean value. true
/ false
ItemCrafting
Shape of the recipe in any crafting table. If the recipe is marked Shapeless the position of each ingredient is ignored. Entries into this are the letters defined in Ingredients. String List value.
- 'LLL'
- 'LDL'
- 'LLL'
NOTE: X is always used to define air/empty.
Ingredients
Ingredients used in the recipe. Section values.
D: #Ingredient Identification
Material: 'DIAMOND'
Identifier: #Ingredient must have this identifier. Helpful for making custom items craft more custom items. Overrides name. (Can be left empty to ignore)
Amount: 1
Name: 'Diamond Shrine' #Ingredient must have this custom name. (Can be left empty to ignore)
L: #Ingredient Identification
Material: 'LEATHER'
Identifier: #Ingredient must have this identifier. Helpful for making custom items craft more custom items. Overrides name. (Can be left empty to ignore)
Amount: 2
Name: 'Rough Leather' #Ingredient must have this custom name. (Can be left empty to ignore)
Disabled-Worlds
Worlds that this recipe can not be crafted in. Message configuration is found in the blacklisted.yml String List value.
Disabled-Worlds:
- Worldname
- Worldname_nether
- Worldname_the_end