It used to be that the "execute" command works in the "mcfunction" file, but the thing that happened in my add-on is that it does not work.
The command you wrote is as follows:
"execute as @e[type=s:smithing_teble,r=1] at @s if entity @e[r=1] run fill ~ ~ ~ ~ ~ ~ smithing_table replace air"
[s:smithing_teble=An entity created by me, ignoring an error in the word "teble" It should have been a "table."]
expected command:
When any entity approaches this entity "S:Smithing_Teble" it will build a "Smithing_Table" at the coordinates of the entity "S:Smithing_Teble" instead of air.
the problem:
The function does not work and an error message appears below
note!!
This only happens with the "execute" command.
Attachments
Comments 2
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
The addon appears to have the min_engine_version defined as 1.17.0. Please check if changing to 1.20.0 will resolve the issue.
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki