#I need help with a mob.

1 messages · Page 1 of 1 (latest)

mossy yacht
#

you can use the minecraft:on_death component and make an event that runs multiple spider summon commands

dusky field
mossy yacht
#

just give me a sec.

dusky field
#

Thank you.

mossy yacht
#

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.

dusky field
#

Alright, thank you. I will test it to see if it will work.

dusky field
#

It did not work.

dusky field
#

Where do I put the code if it were a spider's behavior?

mossy yacht
#

what's your format version for your entity

native apex
#

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

dusky field
mossy yacht
civic karma
#

it's bugged

#

@dusky field try with damage sensor

#

with fatal damage filter

mossy yacht
#

I tried it out, and it did.

civic karma
#

i already tried, but it never works for me, damage_sensor also it's a good way

mossy yacht
#

then you did something wrong, because It worked for me.

civic karma
#

idk, i made entities since 2020

#

so

mossy yacht
#

and?

civic karma
#

ig im sure it's not me

#

it's a bug

#

it's only a component u can add an event

mossy yacht
#

somehow I just magically got around the bug?

civic karma
#

that's it

civic karma
#

idk

#

i didn't tested now

mossy yacht
#

if you are not sure, why go against my method lmao

civic karma
#

Because it didn't work for him that way.

#

im only giving another solution

#

that's it

mossy yacht
civic karma
#

ik

mossy yacht
#

why do you need to jump in, I saw his message

civic karma
#

?

#

it's a discord to help people

#

lol

mossy yacht
#

oh really

civic karma
#

ye

#

can we stop pls?

mossy yacht
#

yep

dusky field
#

@native apex Thank you.