Behavior Pack entity scripts don't work
- Resolved
Created Issue:
Behavior Pack entity scripts don't work
When attempting to run an animation controller from a script from an entities behavior file i.e.
{ "identifier": "entity:identifier", "is_spawnable": false, "is_summonable": true, "is_experimental": false, "scripts": \{ "animate": [ "test" ] }
{
"format_version": "1.16.0",
"minecraft:entity": {
"description":,
{"run": "(1.0)"}
"animation": { "test": "controller.animation.test" }
},
....
The animation controller is never run, creating a simple controller that constantly gives diamonds to all players never runs:
"controller.animation.test": {
"initial_state": "default",
"states": {
"default": {"transitions": [], "on_entry": ["/give @a diamond"],
{"default": "(1.0)"}
"run": {"transitions": [], "on_entry": ["/give @a diamond"]
}
},
When attempting to run an animation controller from a script from an entities behavior file i.e.
{ "identifier": "entity:identifier", "is_spawnable": false, "is_summonable": true, "is_experimental": false, "scripts": \{ "animate": [ "test" ] }
{
"format_version": "1.16.0",
"minecraft:entity": {
"description":,
{"run": "(1.0)"}
"animation": { "test": "controller.animation.test" }
},
....
The animation controller is never run, creating a simple controller that constantly gives diamonds to all players never runs:
"controller.animation.test": {
"initial_state": "default",
"states": {
"default": {"transitions": [], "on_entry": ["/give @a diamond"] ,
{"default": "(1.0)"}
"run": {"transitions": [], "on_entry": ["/give @a diamond"]
}
},When attempting to run an animation controller from a script from an entities behavior file the animation controller is never run, creating a simple controller that constantly gives diamonds to all players never runs.
This was working in 1.16.40
When attempting to run an animation controller from a script from an entities behavior file the animation controller is never run, creating a simple controller that constantly gives diamonds to all players never runs.
This was working in 1.16.40
Expected Behavior:
- Running an animation script in a entities behavior file runs the 'animation' file
Actual Behavior:
- The script or 'animation' file is never run
Steps to Reproduce:
- Place the controller file in an animation_controllers folder in the behavior pack
- Place the entity file in an entities folder in the behavior pack
- In game use /summon entity:test
- Observe that no diamonds are given
Still affects 1.16.100.57
When attempting to run an animation controller from a script from an entities behavior file the animation controller is never run, creating a simple controller that constantly gives diamonds to all players never runs.
This was working in 1.16.40
Expected Behavior:
- Running an animation script in a entities behavior file runs the 'animation' file
Actual Behavior:
- The script or 'animation' file is never run
Steps to Reproduce:
- Place the controller file in an animation_controllers folder in the behavior pack
- Place the entity file in an entities folder in the behavior pack
- In game use /summon entity:test
- Observe that no diamonds are given
- Resolved -
- Resolved
-