So for example I have the mythic mob that walks to specific block and then it steps on it, this is implemented with mythic mobs. But, I need to make it execute some skills from mm if blockstate of the block it's standing on is specific blockstate (like instrument and note in noteblock). I know how to execute skills from mm with denizen, but how do I make it track that THIS SPECIFIC mob is standing on top of some block? And also this mob not one in the world, for example player walks in the world and these mobs spawning, so script need to be executed for every mob separately. How can I do this? Also I hope that you get what I meant, language barrier n' stuff
#(Zemen) AI stuff with Mythic Mob
1 messages · Page 1 of 1 (latest)
(Zemen) AI stuff with Mythic Mob
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
Well, I'm thinking about save command, but idk if it's the right way to do this kind of stuff with what I want to achieve
i think you can achieve what you want by flagging them upon spawn, and then using entity_flagged: matcher in the desired events
i did this once for one of my mm mob
!e mythicmob mob spawns
Required Plugins or Platforms
Depenizen, MythicMobs
Group
Depenizen
Event Lines
mythicmob <mob> spawns
Triggers
when a MythicMob spawns.
Context
<context.mob> Returns the MythicMob that is spawning.
<context.entity> Returns the EntityTag for the MythicMob.
<context.location> Returns the LocationTag of where the MythicMob will spawn.
<context.from_spawner> Returns true if the mob was from a spawner.
<context.spawner_location> Returns the LocationTag of the spawner that spawned the mob, if any.
Has Known Location
True - this adds switches in:<area> + location_flagged:<flag name>.
!e entity steps on block
Required Plugins or Platforms
Paper
Group
Paper
**WARNING**
This event may fire very rapidly.
Event Lines
entity steps on block <entity> steps on <material>
Triggers
when a non-player entity steps onto a specific block material. For players, use !event player steps on block.
Context
<context.entity> returns an EntityTag of the entity stepping onto the block.
<context.location> returns a LocationTag of the block the entity is stepping on.
<context.previous_location> returns a LocationTag of where the entity was before stepping onto the block.
<context.new_location> returns a LocationTag of where the entity is now.
Has Known Location
True - this adds switches in:<area> + location_flagged:<flag name>.
Cancellable
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
Examples
# Announce the name of the entity stepping on the block and the material of block.
on entity steps on block:
- announce "<context.entity.name> stepped on a <context.location.material.name>!"
# Announce the material of the block a sheep has stepped on.
on sheep steps on block:
- announce "A sheep has stepped on a <context.location.material.name>!"
# Announce that a sheep has stepped on a diamond block.
on sheep steps on diamond_block:
- announce "A sheep has stepped on a diamond block! Must be a wealthy sheep!"
Maybe you are right
I'll try to explain again: I have my mob in the world and he stands on top of the block. This mob not alone in the world. So, it means that THIS SPECIFIC Mob does this, and others are not standing on top of the block, so the skill need to be executed only for the mob that standing on top of the block, not for all of them
Ok, I'll try to explain a bit differently:
I have my_mob(1), my_mob(2) and my_mob(3). So there are 3 of them in the world. One of them, lets say that it was my_mob(1) walked on some block. Script executed, BUT. I need to make it execute only for the my_mob(1) when he walks on that block, not for ALL of them because of 1 of the mobs
flag THAT mob only. then do whatever you want to mob flagged whatever.
and what if there are a bunch of them flagged? Like in example above: my_mob(1) stands on block AND my_mob(2) stands on block too, I want to execute that skill for them, but not for the my_mob(3), because he is not doing it at this moment. I still need to use flags?
and I'm not saying that there can be ONLY 3 of my_mob, there can be 4, 5, 6 etc. Like, andless of them
yeah flags will do that for you
entity_flagged:whatever steps on blablabla: will fire ONLY for the mob who stepped on the specific block
the event is valid for every entity flagged with whatever, but it'll only trigger individually
oH! That's cool, thanks for helping me out ya all