mehboss / CustomRecipes

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

Customitems collide with vanilla items #40

Closed Snic0509 closed 3 months ago

Snic0509 commented 8 months ago

What happened?

I have denyed with a permission the Diamond equipment and set another Diamond equipment with another permission to craft but if i give the player the permision from the custom diamond equip the player cant craft the customitem

What was supposed to happen?

The player should can craft the custom Diamond items and he cant craft the Vanilla diamond equip

How do I reproduce this issue?

1. Deny the normal diamond quip 
2. Create custom equip with the same matherieal
3.
...

Relevant log output

No response

Relevant file configuration

Stahl Spitzhacke:
  Enabled: true # Whether or not this recipe is enabled
  Shapeless: false # Whether or not you want it to have specific order in crafting
  Item: diamond_pickaxe # 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: Stahl_Spitzhacke # Give your new recipe an identifier :).
  Name: 'Stahl Spitzhacke'
  Permission: crecipe.recipe.Stahl.Zeug # Give a player this permission to allow them to craft this item. Remove section if no permission wanted.
  Lore:
  - 'Eine sehr Robuste Spitzhacke'

  Hide-Enchants: false # Show enchants on item?
  Enchantments:
  - 
  ItemCrafting:
  - III
  - XEX
  - XEX
  Ingredients:
    # DO NOT INCLUDE VARIABLE X AS AN INGREDIENT. THIS IS DEFAULTED TO AIR **
    E: # E is the letter I picked for emerald
      # REMOVE NAME SECTION OR SET TO 'none' IF NOT WANTED
      Material: stick # Material ENUM
      Identifier: none # Set to custom recipe 'identifier' to use a custom item as an ingredient
      Amount: 1 # Amount required in one slot to craft
    I: # E is the letter I picked for emerald
      # REMOVE NAME SECTION OR SET TO 'none' IF NOT WANTED
      Material: diamond # Material ENUM
      Identifier: StahlBarren # Set to custom recipe 'identifier' to use a custom item as an ingredient
      Amount: 1 # Amount required in one slot to craft
      Name: Stahl Barren
  Item-Flags: []
  # Add items flags to your item such as hide attributes
  Attribute: []
  # Adds a given amount of a specified attribute to the custom item.
  # Format: ATTRIBUTE:AMOUNT:SLOT
  Custom-Model-Data: none
  Disabled-Worlds: []
# Custom model data for texture packs. Only on MC 1.14+!

Server Version

1.20.2

Plugin Version

1.8.8

Server Mode

Online Mode

Issue Confirmation

mehboss commented 4 months ago

Hello there,

You should place the vanilla diamond equipment in the blacklisted.yml which will deny crafting of that equipment. From there, the player should be able to craft your customized diamond equipment after being granted the permission that you set. Please let me know if this helps. Thank you.

mehboss commented 3 months ago

Hello, I am closing this issue as unresolved and wontfix. I am unable to replicate this issue and have not heard back. Please open a new issue if the problem persists.

Thank you.