#1.20.1 work but in 1.21.20 isn't work

1 messages · Page 1 of 1 (latest)

stoic sand
#

{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.truck.forward": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            {
              "shoot": "query.get_equipped_item_name=='forward' && query.item_remaining_use_duration > 0"
            }
          ]
        },
        "shoot": {
          "transitions": [
            {
              "default": "(0.1)"
            }
          ],
          "on_entry": [
       "/event entity @e[type=m113:m3,r=6] machineguns_fire ",
          "/event entity @e[type=m113:m3,r=6] machineguns_fire",
                 "/event entity @e[type=humave:hv,r=6] machineguns_fire ",
          "/event entity @e[type=humave:hv,r=6] machineguns_fire",
                 "/event entity @e[type=flak:88,r=30] fire:main ",
          "/event entity @e[type=flak:88,r=30] fire:main"
          ]
        }
      }
    }
  }
}

This work in 1.21.1 but in 1.21.20 isn't work how fix

Animation.controller

frank hawk
#

event is removed in new release

stoic sand
grim inlet
#

Entity events are still a thing

#

You don't need scripting for entities

#

What exactly is happening when you use it?

stoic sand
#

This spawn bullet but now isn't work

grim inlet
#

So, it doesn't spawn the bullets?

stoic sand
#

But isn't work this animation controller

#

Not spawn

#

After this update doesn't work

grim inlet
#

Sorry, I'm having a bit of a hard time understanding. Are you saying that it works when you spawn the bullets elsewhere, but it doesn't work in the animation controller?

stoic sand
#

I use event is work

#

But with animation controller isn't work

#

1.21.1 is work but now 1.21.20 isn't work

grim inlet
#

Huh, strange

#

Can you send the entity file too?

#

Also, are you sure the states are switching?

#

Try putting some /say commands in on_enter to make sure the states transition

stoic sand
#

I send file bp

#

Here is

stoic sand
grim inlet
#

I've noticed a few issues in the json of flak:88 at least. It seems misformatted(There's a random remove that isn't inside of an event for example). Also, the firing component group doesn't exist in it

#

So that seems to be a big part of the issue