mojira.dev
MC-313296

Dispensers do not respect the block transformer "item_damage_per_use" with the new dispense_behavior

If you try creating a custom dispense behavior for axes using the preexisting axe block transformer, the dispenser will strip the log but it will not take durability damage.

Steps to reproduce:

1: Create a new datapack with a file called β€œaxe.json” under data/minecraft/dispense_behavior (or use the provided datapack)

2: Paste the following code into the axe.json file

[
  {
    "type": "minecraft:transform_block",
    "transformer": "minecraft:axe"
  },
  {
    "type": "minecraft:drop_item"
  }
]

3: Open the world and run the command: /give @s minecraft:copper_axe[minecraft:dispense_behavior="minecraft:axe"]

4: Put the axe in a dispenser facing a log, and power the dispenser

Expected result: The log strips and the axe takes 1 durability

Actual result: The log strips but the axe does not take any damage.

Linked issues

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media]

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

Would like to request this be reopened, I don’t see how this is a feature request. Seems a clear oversight with unintended and inconsistent behaviour regarding the use of block transformers.

Vapor6701

(Unassigned)

Confirmed

26.4 Snapshot 10

Retrieved