Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to interact with animal pen using Knife #3

Open
BONNe opened this issue Mar 5, 2025 · 1 comment
Open

Ability to interact with animal pen using Knife #3

BONNe opened this issue Mar 5, 2025 · 1 comment
Labels
Status: Done This issue has been completed or answered. This pull request has been merged.

Comments

@BONNe
Copy link
Member

BONNe commented Mar 5, 2025

nath256 in CurseForge coments (#6991170) requested:

Hi, good job on this mod ! I also have a suggestion : Can you allow knives to be used to kill the mobs and get knife-related drops such a ham from Farmers delight ? It would be awesome ^^

@BONNe BONNe added the Status: Done This issue has been completed or answered. This pull request has been merged. label Mar 5, 2025
@BONNe
Copy link
Member Author

BONNe commented Mar 5, 2025

Implementation:
Added 2 new Item Tags:

  • animal_pen:can_attack_aquarium
  • animal_pen:can_attack_pen

Items that are listed in these tags allows performing an attack on their corresponding block.

The example to add custom_knife and modded_dagger:

📂 your_custom_datapack/data/animal_pen/tags/items/can_attack_pen.json 1.20.4 and bellow
📂 your_custom_datapack/data/animal_pen/tags/item/can_attack_pen.json 1.20.6 and above

{
  "replace": false,
  "values": [
    "mod1_id:custom_knife",
    "mod2_id:modded_dagger"
  ]
}

BONNe added a commit that referenced this issue Mar 8, 2025
…arium.

This addresses issue #3 where users want to add different items that can attack entities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Done This issue has been completed or answered. This pull request has been merged.
Projects
None yet
Development

No branches or pull requests

1 participant