#Entity minecraft:timer not working?

1 messages · Page 1 of 1 (latest)

regal fractal
#

Tested, won't seem to work despite the amount of seconds passing.. :(

#
            "melee_unit":  {
                "minecraft:behavior.melee_box_attack":  {
                    "priority":  2,
                    "speed_multiplier":  1,
                    "track_target":  true
                },
                "minecraft:variant":  {
                    "value":  1
                },
                "minecraft:timer":  {
                    "looping":  false,
                    "on_timer_end":  {
                        "event":  "add_mode_switcher",
                        "target":  "self"
                    },
                    "time":  [
                        10,
                        30
                    ]
                }
            }
#

Events:

 "minecraft:entity_spawned":  {
                "add":  {
                    "component_groups":  [
                        "melee_unit"
                    ]
                }
            },
            "switch_to_melee":  {
                "remove":  {
                    "component_groups":  [
                        "ranged_unit",
                        "mode_switcher"
                    ]
                },
                "add":  {
                    "component_groups":  [
                        "melee_unit"
                    ]
                },
                "event":  "weapon_randomizer",
                "target":  "self"
            },
delicate quest
#

Oh

regal fractal
#
            "add_mode_switcher":  {
                "add":  {
                    "component_groups":  [
                        "mode_switcher"
                    ]
                }
            },
            "switch_to_ranged":  {
                "queue_command":  {
                    "command":  [
                        "function lbr_atelier_logic"
                    ]
                },
                "remove":  {
                    "component_groups":  [
                        "melee_unit",
                        "mode_switcher"
                    ]
                },
                "add":  {
                    "component_groups":  [
                        "ranged_unit"
                    ]
                }
            },
delicate quest
#

Remove the []

#

And just make it 10

#

Then that's a 10 second timer

regal fractal
#

I see. No longer randomize?

delicate quest
#

Unless u want it to be

#

But idk how that works

#

Haven't used it

regal fractal
#

I see, okay

#

I'll keep it at 10 and 30 respectively

#

Didn't do anything. Tried on 100 tickspeed. Still nothing :/

delicate quest
#

I can't look at all the options or give a proper example

#

Not at my pc

#

My apologies

regal fractal
#

No worries, it's just the timers not working

dawn bear
#

Is on_timer_end new? It's always been time_down_event.

#

@regal fractal

dense rapids
dawn bear
dense rapids
#

same

regal fractal