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
duplicates 1
Attachments
Comments 3
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
Thank you for helping us improve Minecraft! We saved your files: