Step to reproduce:
Download add-on below and activate into world (All Experimental Features Activated)
Using this command to test block /give @s issuetest:transform_item_test
Place that's block and interact with an item on it
If using transform_item, all stack of that's item holding will be converted to item in transform_item
"transform_item": {
"transform": "lava_bucket"
}
Results Received:
Before Event Run | After Event Run
Empty Bucket * 16 -> Lava Bucket * 1
Expected Result:
Before Event Run | After Event Run
Empty Bucket * 16 -> Lava Bucket * 1 And Empty Bucket * 15
Suggest Syntax:
"transform_item": {
"transforms": [
{
"name": "lava_bucket",
"data": 0,
"count": 1
},
{
"name": "custom_item",
"count": 1
},
{
"name": "custom_block",
"states": [
"ns:ex": false
],
"count": 64
},
...
]
}
Β
Update 1.19.20+
It will be throw error, dosen't work
Results Content Log Received:
[Item][error]-Could not transform item into lava_bucket, it is invalid
Linked issues
Attachments
Comments 7
Resolving temporarily as Awaiting Response. Could you please attach an example add-on to your report?
This ticket will reopen automatically when you reply.
I can confirm this is not working, I am attaching a block file along with this comment for you to review.
[media]
Both of the packs throw syntax errors when the item is spawned. I think the packs perhaps may need to be updated.
When I run the code below inside the behavior\blocks\test_block.json \ events\test:on_interact
Β
hold iron_ingot || lava_bucket || water_bucket
Β it says "it is invalid."
Β
"transform_item":{
"transform":"minecraft:apple"
}
[Item][error]-Could not transform item into minecraft:apple, it is invalid.
This was recently marked as resolved, awaiting response, but I don't think because the entire transform_item event is not functioning at all in current versions that this can be marked "resolved". Related issue MCPE-159116 needs resolved first prior to determining if that solution resolves this issue as well, and it hasn't been.
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Is this still an issue in the latest version? If yes, could you please add it to the affected versions (or mention it if you are not the reporter)?
This ticket will automatically reopen when you reply.
Quick Links:
π Issue Guidelines β π¬ Mojang Support β π§ Suggestions β π Minecraft Wiki
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Is this still an issue in the latest version? If yes, can you please add it to the affected versions (or mention it if you are not the reporter)?
This ticket will automatically reopen when you reply.
Quick Links:
π Issue Guidelines β π¬ Mojang Support β π§ Suggestions β π Minecraft Wiki