mehboss / CustomRecipes

CustomRecipes source code
Mozilla Public License 2.0
2 stars 1 forks source link

[Question]: #33

Closed Snic0509 closed 10 months ago

Snic0509 commented 10 months ago

What is your question?

i nedd help with the enchantments on the custom items i add the enchantment but i cant see the enchantments on the items (hide enchantments is false) and it dosent change anything abolut the damage

Provide documentation

Aetheralitbrustpanzer: Enabled: true # Whether or not this recipe is enabled Shapeless: false # Whether or not you want it to have specific order in crafting Item: netherite_chestplate # Item ID Item-Damage: none # Used for when you need a specific type of item with a "19/00" or "13:4". leave to none if non exists. Amount: 1 # When you craft this item, this is the amount you will get from it. Placeable: true # If it is a block, you can choose to make it unplaceable. Ignore-Data: false # Whether or not metadata should be considered as a requirement for crafting Ignore-Model-Data: false # Whether or not you want model data to be considered even if ignore-data is set to true Custom-Tagged: true # Whether or not you want this item to be tagged with a custom item tag. Durability: '100' # 1-100. Remove section if not needed. Identifier: Aetheralitbrustpanzer # Give your new recipe an identifier :). Permission: crecipe.recipe.Aetheralit # Give a player this permission to allow them to craft this item. Remove section if no permission wanted. Name: &lAetheralitbrustpanzer # Name of the item, you can use color codes. Remove if not needed Lore:

Server Version

1.20

Plugin Version

1.8.7

Question Confirmation

mehboss commented 10 months ago

Hello there Snic0509,

As you can see by the console log:

image

The enchantment PROTECTION is not a valid enchantment.

Here is a list of all valid enchantments

image image

The enchantment you are looking for is "PROTECTION_ENVIRONMENTAL"

For future reference - If you are having an issue with a particular feature, 99% of the time console will log what the issue is, especially when relating to enchantment issues.

Thank you, Mehboss

Snic0509 commented 10 months ago

Tahnk you very mutch

Snic0509 commented 10 months ago

Where did you find the list ?

Valorless commented 10 months ago

Spigot has a massive docs detailing most of what can be used in terms of developing plugins for it. The enchants themselves are here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html

If I search on google for example "Spigot potion effects", one of the first results is a full list of all the potion effects available: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html