#I need help with a mob.
1 messages · Page 1 of 1 (latest)
I am still pretty new to this, so I do not know how to do that, if it will not cause any trouble, would you explain how to do that please?
Yeah sure, I'll cook an example up.
just give me a sec.
Thank you.
Alr
here
this is an example of a custom pig, when killed, 2 pigs spawn.
in short, these are the important components & events you need for your queen spider.
if you want more spiders, add more summon commands.
Alright, thank you. I will test it to see if it will work.
It did not work.
Where do I put the code if it were a spider's behavior?
how did it not work...
what's your format version for your entity
I believe run_command is still experimental. I could be wrong though. If that is the issue, this file works without using run command.could potentially do something like what's in this pig file instead. The main idea of it is that it uses a damage sensor to add a component group that would spawn the entities instead of dying. It then kills itself. Main json used:
Damage sensor component(the file has the trigger to turn into a zombie pigman as well, but I removed it here):```json
"minecraft:damage_sensor": {
"triggers": [
{
"on_damage":{
"filters":[
{
"all_of":[
{
"test":"has_damage",
"value":"fatal"
},
{
"test": "has_component",
"operator": "!=",
"value": "minecraft:spawn_entity"
}
]
}
],
"event": "death"
}
}
]
},
Event:```json
"death": {
"add": {
"component_groups": [
"spawning"
]
}
}
Component group to spawn entities:json "spawning":{ "minecraft:spawn_entity": { "entities":[ { "max_wait_time": 0, "min_wait_time": 0, "num_to_spawn": 2, "spawn_entity": "minecraft:pig", "single_use": true, "spawn_event": "minecraft:entity_spawned" } ] }, "minecraft:damage_over_time": { "damage_per_hurt": 100, "time_between_hurt": 0 } }
If run_command isn't experimental anymore, than that means you have some other issue with your entity
1.16.0
pay attention to blaze drake.
that doesn't work
it's bugged
@dusky field try with damage sensor
with fatal damage filter
i already tried, but it never works for me, damage_sensor also it's a good way
then you did something wrong, because It worked for me.
and?
somehow I just magically got around the bug?
that's it
probably mojang fixed in the new versions
idk
i didn't tested now
if you are not sure, why go against my method lmao
Because it didn't work for him that way.
im only giving another solution
that's it
he told me already it didnt work
ik
why do you need to jump in, I saw his message
oh really
yep
@native apex Thank you.