jfmekker / AurumancyMod

Gold-based magic mod for Minecraft 1.15.2 using Forge.
MIT License
0 stars 0 forks source link

[Defect] Items with a block use aren't triggered on blocks that activate. #11

Open jfmekker opened 3 years ago

jfmekker commented 3 years ago

Describe the defect When an item with a block-usage is used on a block that can be activated, then block's effect triggers but not the item's.

To Reproduce Steps to reproduce the behavior:

  1. Place a mana_fertilizer block
  2. Hold a mana_meter item in hand
  3. Right click on the block
  4. Mana is added to the mana_fertilizer, but the mana_meter provides no reading

Expected behavior In some cases (the mana_meter in particular) the opposite precedence may be desired. This could potentially be solved on the block side or the item side.

jfmekker commented 3 years ago

Note: the item's use can be triggered by sneak right-clicking.

jfmekker commented 3 years ago

Potential solution: Have an activated block return ActionResultType.PASS; instead of return ActionResultType.PASS; when the player's hands are not empty.