#Entity minecraft:timer not working?
1 messages · Page 1 of 1 (latest)
"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"
},
Oh
"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"
]
}
},
I see. No longer randomize?
I see, okay
I'll keep it at 10 and 30 respectively
Didn't do anything. Tried on 100 tickspeed. Still nothing :/
I can't look at all the options or give a proper example
Not at my pc
My apologies
No worries, it's just the timers not working
I've never seen anyone use it before, maybe its a wrong syntax?
Well, I always use time_down_event
same
Yeah that worked, thanks.