### Example Item Configuration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Items/Options A basic example of how to structure an item with options. ```yaml example_item: Id: diamond Options: SomeOption: value ``` -------------------------------- ### Example Dialog Configuration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Dialogs A complete example of a dialog configuration file, showing title, body, inputs, and buttons. ```yaml DialogName: Title: "Dialog Title" ExternalTitle: "Short Title" CanClose: true Pause: false AfterAction: CLOSE Columns: 1 Body: - Type: text Message: "Some text here." Width: 256 Conditions: - condition1 - Type: item Item: DIAMOND_SWORD Width: 64 Height: 64 Decoration: true ShowTooltip: true Inputs: - Type: text Key: myInput Label: "Enter something" MaxLength: 256 Multiline: false Width: 200 LabelVisible: true Buttons: - Label: "Confirm" Tooltip: "Click to confirm" Width: 150 Skill: SomeSkill Conditions: - condition1 ExitButton: Label: "Close" Width: 100 Skill: OptionalSkill ``` -------------------------------- ### Example Spawner Configuration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Spawners This is a complete example of a MythicMobs spawner configuration file. It outlines all available options and their typical values. ```yaml SpawnerName: MobName: mobTypeName World: worldname SpawnerGroup: GroupName X: 0 Y: 0 Z: 0 Radius: 0 RadiusY: 0 UseTimer: true MaxMobs: 1 MobLevel: 1 MobsPerSpawn: 1 Cooldown: 0 CooldownTimer: 0 Warmup: 0 WarmupTimer: 0 CheckForPlayers: true ActivationRange: 40 LeashRange: 32 HealOnLeash: false ResetThreatOnLeash: false ShowFlames: false Breakable: false Conditions: [] ActiveMobs: 1 ``` -------------------------------- ### New Component Configuration Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/Changelogs Example of how to configure new components like AttackRange, Weapon, JukeboxPlayable, and PotDecorations in a MythicMobs configuration file. ```yaml AnItem: Material: DIAMOND AttackRange: 3.5 Weapon: ItemDamagePerAttack: 2 DisableBlockingForSeconds: 0.5 JukeboxPlayable: "minecraft:thirteen" UseRemainder: ADifferentItem RepairableBy: - STICK PotDecorations: Back: brick Left: arms_up_pottery_sherd Right: skull_pottery_sherd Front: prize_pottery_sherd ``` -------------------------------- ### Basic Mannequin Configuration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/MannequinOptions Example of a basic mannequin setup with a specified player skin. ```yaml cool_display: Type: MANNEQUIN MannequinOptions: Player: Herobrine ``` -------------------------------- ### Example BossBar Configuration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/BossBar A practical example demonstrating how to implement a BossBar for a custom mob named SuperCreeper. ```yaml SuperCreeper: Type: creeper Display: '&cTest' Health: 20 BossBar: Enabled: true Title: 'Test' Range: 20 Color: RED Style: SOLID ``` -------------------------------- ### Example Mob Equipment Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/Equipment An example demonstrating how to equip a mob with specific items in different slots. This includes a custom item and a vanilla item. ```yaml awesome_boss: Type: pig_zombie Equipment: - awesome_boss_helmet HEAD - diamond_sword HAND ``` -------------------------------- ### Open Custom Menu Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/OpenCustomMenu This example demonstrates how to use the opencustommenu skill to open a menu named 'ExampleMenu' when a player interacts with an object. ```yaml Skills: - opencustommenu{m=ExampleMenu} @trigger ~onInteract ``` -------------------------------- ### Example Mob with onChangeTarget Skill Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Triggers/onChangeTarget This example demonstrates how to configure a mob to execute a 'message' skill when its target changes. Ensure ThreatTables are enabled for the mob. ```yaml EXAMPLE_MOB: Type: CHICKEN Modules: ThreatTable: true Skills: # sends a message to all the players in the world # when the mob's target changes - message{m=Target Changed} @World ~onChangeTarget ``` -------------------------------- ### onSpawnOrLoad Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Triggers/onSpawnOrLoad This example demonstrates sending a message to all players when a mob spawns or is loaded. It uses the 'message' skill and targets the entire world. ```yaml EXAMPLE_MOB: Type: VILLAGER Skills: # sends a message to all the players in the world # when the mob spawns or when the mob is loaded after a server restart - message{m=SPAWNED! Or was i loaded?} @World ~onSpawnOrLoad ``` -------------------------------- ### Bow Attack Configuration Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/ai/goals/bowattack Example of how to configure the bowattack AI Goal for a mob. This sets the movement speed and attack radius. ```yaml ExampleMob: Type: Skeleton AIGoalSelectors: - clear - bowattack{speed=1;radius=15} ``` -------------------------------- ### Leap At Target Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/ai/goals/leapattarget This example demonstrates how to configure a mob to use the leapattarget goal, setting its leap speed to 4. ```yaml ExampleMob: Type: ZOMBIE AIGoalSelectors: - clear - leapattarget{s=4} ``` -------------------------------- ### Goat Ram Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/GoatRam This example demonstrates how to assign the goatram skill to a custom mob named ExampleMob. The skill is triggered on interaction. ```yaml ExampleMob: Type: GOAT Skills: - goatram @trigger ~onInteract ``` -------------------------------- ### Guardian Beam Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/GuardianBeam This example demonstrates how to apply the Guardian Beam effect to a target. It specifies the duration, interval, starting Y offset, and associated meta-skills for start, tick, and end events. ```yaml Guardian_Beam: Skills: - guardianbeam{d=200;i=1;syo=1;fromOrigin=false;oS=AStartingSkill;oT=ATickingSkill;oE=AEndingSkill} @Target ``` -------------------------------- ### Dust Color Transition Particle Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/Particle/Particle-Types/Dust_Color_Transition This example demonstrates how to use the dust_color_transition particle with specified start and end colors and size. ```yaml Skills: - particle{p=dust_color_transition;color=#FF0000;color2=#0000FF;size=1} ``` -------------------------------- ### onEnterCombat Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Triggers/onEnterCombat This example demonstrates how to send a message to all players in the world when a mob enters combat. Ensure ThreatTables are enabled for this trigger to function. ```yml EXAMPLE_MOB: Type: CHICKEN Modules: ThreatTable: true Skills: # sends a message to all the players in the world # when the mob enters combat - message{m=ENTERED COMBAT} @World ~onEnterCombat ``` -------------------------------- ### Configuration LoadExampleConfigs Option Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/5.3.x_changelogs Sets whether to load example configurations by default in config.yml. ```yaml Configuration.LoadExampleConfigs (defaults to true) in config.yml ``` -------------------------------- ### Doppleganger Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/doppleganger This example demonstrates how to use the Doppleganger skill to copy the appearance of the nearest player. It requires Libs' Disguises to be installed. ```yaml TotallyNotDitto: Type: SKELETON Skills: - doppleganger @NearestPlayer ~onSpawn ``` -------------------------------- ### Dynamic Metaskill Creation Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Dynamic-Metaskills This example shows how to build a metaskill string piece by piece using setvariable and then execute it with vskill. This allows for the creation of entirely new metaskills dynamically. ```yaml Testmob: Type: pig Skills: - skill{s= [ - setvariable{var=skill.temp;type=STRING;val=glow} @self - setvariable{var=skill.testskill2;type=STRING;val="["} - setvariable{var=skill.testskill2;type=STRING;val= - message{m=aaa} @World} @self - setvariable{var=skill.testskill2;type=STRING;val= - message{m=bbb} @World} @self - setvariable{var=skill.testskill2;type=STRING;val=]} @self - vskill{s=} - vskill{s= [ - particle{p=} @selflocation{y=2} ]} @self ]} @self ~onInteract ``` -------------------------------- ### Set Player Flying Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/SetFlying This example demonstrates how to use the SetFlying skill to make all players within a 2-radius sphere around the caster start flying. The 'f' alias is used for the 'flying' attribute, and it's set to true. ```yaml Skills: - setflying{f=true} @PIR{r=2} ``` -------------------------------- ### Basic Beam Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/mechanics/Beam This example demonstrates a basic beam skill that lasts for 100 ticks, has a rotation speed of 2 degrees per tick, and starts with a y-offset of 100 from the caster's location. It targets the caster's current location. ```yaml Skills: - beam{d=100;rs=2;syo=100} @selflocation ``` -------------------------------- ### Subsequent Metaskill Execution Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Metaskills Demonstrates calling one skill (ExampleSkill) from another (ExampleMob) which inherits targets. This is useful for chaining abilities. ```yaml #MOB FILE ExampleMob: Type: ZOMBIE Skills: - skill{s=ExampleSkill} @PIR{r=10} ~onInteract ``` ```yaml #SKILL FILE ExampleSkill: Skills: - skill{s=Example_Ignite} - skill{s=Example_Message} @NearestPlayer{r=1} Example_Ignite: Skills: - ignite Example_Message: Skills: - message{m="Why are you so close?"} ``` -------------------------------- ### Creeper Charged Message Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Triggers/onCreeperCharge Sends a message to all players in the world when the mob gets charged. This snippet demonstrates the basic usage of the onCreeperCharge trigger. ```yaml EXAMPLE_MOB: Type: CREEPER Skills: # sends a message to all the players in the world # when the mob gets charge - message{m=CHARGED} @World ~onCreeperCharge ``` -------------------------------- ### Option Input Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Dialogs Sets up a dropdown selection input for dialogs. Ideal for choosing from a predefined list of options. ```yaml Inputs: - Type: option Key: classChoice Label: "Choose a Class" Options: warrior: "Warrior" mage: "Mage" ranger: "Ranger" ``` -------------------------------- ### MythicMobs Go To Spawn Location Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/ai/goals/goToSpawnLocation Configures a zombie to move towards its spawn location if it gets too far away. It will then engage in melee attacks. ```yaml ExampleMob: Type: ZOMBIE AIGoalSelectors: - clear - goToSpawn{speed=1;max=20;min=4} - meleeattack ``` -------------------------------- ### Hide Player HUD on Cinematic Start Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Triggers/onCinematicStart This example demonstrates hiding the caster's bossbar UI when any cinematic begins. The caster is the player for whom the cinematic is playing. ```yml CinematicWatcher: Type: ARMOR_STAND Skills: # Hide the player's bossbar UI the moment any cinematic starts - setVariable{var=caster.hud;value=hidden} @self ~onCinematicStart ``` -------------------------------- ### Basic Skill Command Registration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Skill-Commands This example demonstrates how to register a metaskill as a command. The 'Id' field sets the command name, and 'Aliases' provide alternative triggers. 'Completions' define arguments that can be tab-completed, with 'example' being a placeholder for dynamic input. ```yaml MyExampleSkills: Command: Id: skillTest Aliases: - testSkill Completions: example: - players Skills: - message{m= our hero!} @self ``` -------------------------------- ### Apply Mycelium Particle in Skill Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/Particle/Particle-Types/Mycelium Use this syntax within a MythicMobs skill to apply the Mycelium particle effect. No specific setup is required beyond having MythicMobs installed. ```yaml Skills: - particle{p=mycelium} ``` -------------------------------- ### Follow a predefined route Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/ai/goals/FollowRoute This example demonstrates how to configure the FollowRoute goal to make a mob follow a path defined by specific coordinates. The path starts at (1,0,0) and ends at (12,0,10). ```yaml AIGoalSelectors: - clear - followRoute{p=1,0,0;12,0,10} ``` -------------------------------- ### Check if Target is Leashed Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Conditions/isleashed This example demonstrates how to use the isLeashed condition to check if the target entity is leashed. It requires no specific setup or imports beyond the standard MythicMobs configuration. ```yaml TargetConditions: - isLeashed true ``` -------------------------------- ### Button Skills Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Custom-Menus Demonstrates how to add skills to a menu button that execute when the button is clicked. Includes sound, setting another button, and sending a message. ```yaml Skills: - sound{s=entity.chicken.egg} - setcustommenubutton{slot=11;icon=DYNAMIC_BUTTON} - message{m="you hit me"} @self ``` -------------------------------- ### RaytraceTo Mechanic Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/raytraceto Demonstrates the basic usage of the raytraceto mechanic, including applying skills on entity hit and location hit, and setting custom start and end offsets with eye location as the origin. ```yaml MyRaytraceToSkill: Skills: - raytraceto{ entitySkill=[ - damage{amount=20} ]; locationSkill=[ - particles{p=flame;a=20;s=0.2;hS=0.1;vS=0.1} ]; startyoffset=1; targetyoffset=1; useeyelocation=true } @targetlocation ~onUse ``` -------------------------------- ### Targeting Siblings with Ignite Skill Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Targeters/Siblings This example demonstrates how to use the @Siblings targeter to apply an Ignite skill to all mobs that share the same parent as the caster. No specific setup or imports are required beyond defining the skill. ```yaml ExampleSkill: Skills: - ignite @Siblings ``` -------------------------------- ### Example Hyperlink Syntax Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Wiki-Editors-Resources/Wiki-Editors-Resources Demonstrates how to create relative hyperlinks within the wiki. Use this format for linking to other wiki pages. ```Markdown [ExampleMechanic](Wiki-Editors-Resources/ExampleMechanic) ``` -------------------------------- ### Disguising Mobs with Lib's Disguises Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/pre-2.0_changelogs Example of using the 'Disguise' option with Lib's Disguises to make a MythicMob appear as another entity, such as a pig. This requires Lib's Disguises and ProtocolLib to be installed. ```yaml AngryPig: Mobtype: pigzombie Display: 'Angry Pig' Health: 30 Damage: 5 Options: Disguise: pig ``` -------------------------------- ### Command Parent Skill Setup Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/Changelogs Illustrates setting up a parent command skill and a child command skill using the 'Parent' property. This allows for the creation of sub-commands. ```yaml ParentCommandSkill: Command: Id: parent ChildCommandSkill: Command: Id: child Parent: ParentCommandSkill ``` -------------------------------- ### RaytraceTo Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/mechanics/raytraceto Demonstrates how to use the raytraceto mechanic to trace a ray, applying damage to entities and particles to locations upon hit. It customizes the start and end Y offsets and uses the caster's eye location. ```yaml MyRaytraceToSkill: Skills: - raytraceto{ entitySkill=[ - damage{amount=20} ]; locationSkill=[ - particles{p=flame;a=20;s=0.2;hS=0.1;vS=0.1} ]; startyoffset=1; targetyoffset=1; useeyelocation=true } @targetlocation ~onUse ``` -------------------------------- ### Example Pack Directory Structure Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Packs Illustrates a typical MythicMobs pack structure, including nested folders and various file types like droptables, mobs, schematics, and skills. ```text 📦ExamplePack ┣ 📂files ┃ ┣ 📂aRandomFolder ┃ ┃ ┣ 📂aNestedFolder ┃ ┃ ┃ ┗ 📜ThisIsADroptableFile.droptable.yml ┃ ┃ ┣ 📜ThisIsAMobFile.mob.yml ┃ ┃ ┗ 📜ThisIsAPlaceholderFile.placeholder.yml ┃ ┣ 📂anotherRandomFolder ┃ ┃ ┣ 📜ThisIsAMobFile.mob.yml ┃ ┃ ┣ 📜ThisIsASchematic.schem ┃ ┃ ┗ 📜ThisIsASkillFile.skill.yml ┃ ┗ 📜ThisIsAStatFile.stat.yml ┗ 📜packinfo.yml ``` -------------------------------- ### Temporary Saddle on Interact Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/mechanics/saddle This example shows a horse that gains a temporary saddle upon interaction. It uses an aura skill to manage the saddle's lifecycle, applying it on start, showing particles and closing inventory while active, and removing it on end. ```yaml ExampleMob: Type: HORSE Options: Tamed: true Skills: - aura{d=1200;auraName=TemporarySaddle;cd=600;sync=true;i=1; onStart=[ - saddle @self ]; onTick=[ - particle{p=crit;hs=0.3;vs=0.2;y=1;a=2} @self - closeinventory @Passenger ]; onEnd=[ - saddle{r=true} @self ] } @self ~onInteract ``` -------------------------------- ### Inline Metaskill with Delay and Ignite Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Metaskills Demonstrates the syntax for writing an inline metaskill that includes a message, a delay, and an ignite effect, utilizing target inheritance. ```yaml ExampleMob: Type: ZOMBIE Skills: - skill{s=[ - message{m="Feeling cold? Don\'t you worry!"} - delay 40 - ignite ]} @trigger ~onInteract ``` -------------------------------- ### EntityType Condition Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/4.0.x_changelogs An example of the EntityType condition, which checks if the target matches a specified entity type. This example requires the target to be a PLAYER. ```yaml - entitytype PLAYER true ``` -------------------------------- ### onReady Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Triggers/onReady This example demonstrates how to use the onReady trigger to send a message to all players in the world when a mob is about to spawn from a spawner. It also shows the onFirstSpawn trigger for comparison. ```yml EXAMPLE_MOB: Type: VILLAGER Skills: # sends a message to all the players in the world # when the mob is about to spawn from a spawner - message{m=READY TO SPAWN FROM A SPAWNER} @World ~onReady - message{m=READY TO SPAWN FROM A SPAWNER} @World ~onFirstSpawn ``` -------------------------------- ### Absolute Value Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Items/Attributes Example of setting an absolute value for the 'Damage' attribute. ```yaml Damage: 10 ADD ``` -------------------------------- ### Basic Mob Configuration with Options Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/Options An example of how to define a mob with basic options like Type and MovementSpeed. ```yaml Dummy: Type: skeleton Options: MovementSpeed: 0.3 PreventSunburn: true ``` -------------------------------- ### Vanilla Targeter Example with Options Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/2.2.x_changelogs Demonstrates using vanilla command block targeters with options like coordinates, count, radius, and team/score conditions. ```minecraft @a[x=100,y=64,z=-100,c=10,r=5] ``` ```minecraft @a[x=1,y=64,z=-18,dx=3,dy=4,dz=19,team=!TEAM1,score_ASD_min=19,score_ASD=20,m=1] ``` -------------------------------- ### Relative Value Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Items/Attributes Example of setting a relative value (percentage) for the 'Damage' attribute. ```yaml Damage: 10% ADD ``` -------------------------------- ### Bounding Boxes Overlap Condition Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Conditions/BoundingBoxesOverlap A basic example of using the boundingBoxesOverlap condition in MythicMobs. ```yaml TargetConditions: - boundingBoxesOverlap false ``` -------------------------------- ### Example: Triggering Skills on Bucket Use or Cow Milking Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Triggers/onBucket This example demonstrates how to use the onBucket trigger to execute a series of skills when a player interacts with a cow (milking) or stores a bucketable entity in a bucket. The skills include sending a message, playing a sound, and causing an explosion, all targeted at the caster. ```yaml ANormalCow: Type: Cow Skills: - skill{s=[ - message{m="HOW DARE YOU?!?!?"} @trigger - sound{s=entity.creeper.primed} - explosion{yield=5;delay=30} ];cd=2} @self ~onBucket ``` -------------------------------- ### Line of Sight From Origin Condition Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Conditions/lineofsightfromorigin A basic example of using the lineofsightfromorigin condition within TargetConditions. ```yaml TargetConditions: - lineofsightfromorigin ``` -------------------------------- ### Basic Skill Execution Examples Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/mechanics/skill Shows fundamental ways to call other skills using the 'skill' mechanic with different triggers and targets. Useful for initiating skill chains. ```yaml Skills: - skill{skill=AnotherSkill} @Target ~onAttack - skill{s=AnotherSkill} @Trigger ~onSpawn - skill:OtherSkill @Trigger ~onDeath ``` -------------------------------- ### Example SudoSkill Metaskill Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/SudoSkill Defines a metaskill named 'ExampleSudoskill' that casts an arrow volley and sends a message to the world. ```yaml # Skills file ExampleSudoskill: Skills: - arrowvolley{a=20;s=25;v=10;f=50;rd=200} @EIR{r=30} - message{msg="Triggername<&co> "} @world ``` -------------------------------- ### IsSibling Condition Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Conditions/IsSibling This example demonstrates how to use the IsSibling condition within MythicMobs' target conditions. ```yaml TargetConditions: - IsSibling ``` -------------------------------- ### GoToLocation Goal Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/ai/goals/GoToLocation This example demonstrates how to configure the GoToLocation goal within the AIGoalSelectors section of a MythicMobs configuration. The coordinates specify the target X, Y, and Z position. ```yaml AIGoalSelectors: - clear - goto 10,20,30 ``` -------------------------------- ### Example Mob Equipment Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/mobs/equipment An example of a mob configuration specifying a custom helmet and a diamond sword for its main hand. ```yaml awesome_boss: Type: pig_zombie Equipment: - awesome_boss_helmet HEAD - diamond_sword HAND ``` -------------------------------- ### Example Custom Menu Configuration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Custom-Menus Defines a custom menu named 'MyCustomMenu' with a specific layout, size, and icons. Use this as a base for creating your own menus. ```yaml MyCustomMenu: Display: "My Custom Menu" Size: 27 Shared: false # Whether the Menu should not be cached and shared across players Schema: - '1 1 1 1 1 1 1 1 1' - '0 0 0 0 B 0 0 0 0' - '1 1 1 1 1 1 1 1 1' Icons: FILLER: Mapping: 1 Material: RED_STAINED_GLASS_PANE Display: '' Model: 1 TEST_BUTTON: Mapping: B Material: GOLD_INGOT Model: 4 Display: 'Test' Skills: - sound{s=entity.chicken.egg} - setcustommenubutton{slot=11;icon=DYNAMIC_BUTTON} - message{m="you hit me"} @self DYNAMIC_BUTTON: Material: IRON_SWORD Model: 100 ``` -------------------------------- ### MythicMobs goto Skill Examples Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/goto Demonstrates using the 'goto' skill to move the owner or to a specific relative location. The 'speed', 'sh' (horizontal spread), and 'sv' (vertical spread) attributes can be modified. ```yml Skills: - goto{speed=1;sh=5;sv=5} @owner - goto{speed=1;sh=5;sv=5} @location{c=100,65,100} ``` -------------------------------- ### DamageTag Condition Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/5.4.x_changelogs Checks if the damage that triggered the skill has the specified tag. Example uses the 'FIRE' tag. ```mechanics - damageTag{tag=FIRE} ``` -------------------------------- ### Dynamic Metaskill Execution Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Dynamic-Metaskills This snippet demonstrates how to dynamically construct and execute a metaskill using setvariable and vskill mechanics. It's useful for creating skills on the fly without pre-defining them in the config. ```yaml Testmob: Type: pig Skills: - skill{s= [ - setvariable{var=skill.temp;type=STRING;val=glow} @self - setvariable{var=skill.testskill;type=STRING; val= [ - message{m=hello} @World - message{m=world} @World - message{m=} @World ]} @self - vskill{s=} - vskill{s= [ - particle{p=} @selflocation{y=2} ]} @self ]} @self ~onInteract ``` -------------------------------- ### Target Sorter Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/4.8.x_changelogs Example of using a target sorter to select the top 5 players with the highest threat. ```mythicmobs @ThreatTablePlayers{sort=HIGHEST_THREAT;limit=5} ``` -------------------------------- ### Mount Target Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/mounttarget This example demonstrates how to make a mob mount the entity targeted by '@trigger' when the mob is damaged. ```yaml Skills: - mounttarget @trigger ~onDamaged ``` -------------------------------- ### Boss Intro Cinematic Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Cinematics This example demonstrates a boss intro cinematic that freezes the player, orbits the boss, and then triggers a skill upon completion. ```yaml BossIntro: Skills: - cinematicCamera{path=boss_orbit;freezePlayer=true;onEnd=BossRoar} @trigger ``` -------------------------------- ### Show Simple Welcome Dialog Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/ShowDialog Displays a basic welcome notice dialog to the player who triggered the skill. Ensure a dialog named 'WelcomeNotice' is configured in your Dialogs/ folder. ```yaml Skills: - showDialog{dialog=WelcomeNotice} @trigger ``` -------------------------------- ### Projectile Hit Conditions Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/Projectile Example of using hitConditions to specify that the projectile should only hit monsters that are not already frozen. ```yaml - projectile{hitConditions=[ - isMonster true - isFrozen false ]} ``` -------------------------------- ### Inline MetaSkills with Projectile Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/4.7.x_changelogs Demonstrates nesting skills using square brackets for inline mechanics, specifically for a projectile skill with onHit, onTick, and onEnd effects. ```yaml Skills: - projectile{ interval=1; velocity=30; bulletType=BLOCK; material=MAGMA_BLOCK; tyo=0.5; g=1; bulletSpin=-40; hnp=true; stopatentity=false; duration=100; onHit=[ - damage{amount=50} - ignite{ticks=20} ]; onTick=[ - particles{p=flame;a=20;hs=0.5;vs=0.5} ]; onEnd=[ - particles{p=largeexplode;a=50;speed=1;hs=0.05;vs=0.05} - effect:sound{s=entity.dragon_fireball.explode;p=0.6;v=2} - damage{amount=30} @ENO{r=5} ]; } @targetlocation ``` -------------------------------- ### Version Command Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/4.5.x_changelogs Demonstrates the new 'version' command, which likely displays the current MythicMobs version. ```bash version ``` -------------------------------- ### HasFreeInventorySlot Condition Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/skills/conditions/HasFreeInventorySlot This example demonstrates how to use the HasFreeInventorySlot condition within MythicMobs triggers. It requires no specific attributes. ```yaml TriggerConditions: - hasfreeinventoryslot ``` -------------------------------- ### Example Stat Configuration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Stats This snippet shows a complete configuration for a static stat, including enabled status, formula key, and various formatting options for tooltips. ```yml EXAMPLE_STAT: Enabled: true AlwaysActive: false Type: STATIC FormulaKey: 'SPD' Formatting: Additive: '+ Speed' Multiply: '+% Speed' Compound: 'x% Speed' Static: 'Force ' Rounding: 2 ShowInLore: Compound: false # optional ``` -------------------------------- ### DirectionalVelocity Condition Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/5.4.x_changelogs Checks if the target has a velocity matching the given parameters. This example checks for a specific X velocity. ```mechanics - directionalVelocity{x=10-20} ``` -------------------------------- ### MythicMobs Skill Examples Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/2.0.x_changelogs Examples of various skills that can be used in MythicMobs, including particle effects, targeted skills, and damage. ```yaml Skills: - effect:particles{cooldown=5;particle=flame;amount=200;vSpread=1;hSpread=2;Speed=0;yoffset=2} @self @onTimer:20 - skill{s=Fireball} @target - particles{p=reddust;a=25;hs=0.5;vs=1;s=0.5;y=0.5} @self - delay 10 - particleline{p=reddust;a=2;hs=0.1;vs=0.1;s=0;y=0.5;db=0.1} @target - damage{amount=20} @target ``` -------------------------------- ### Static Placeholder Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Placeholders Illustrates static placeholders that always produce a single, defined output. ```yaml TestPlaceholder: 'a single value' AnotherTestPlaceholder: 'another single value' ``` -------------------------------- ### Spin Mechanic Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/Spin This example demonstrates how to apply the spin mechanic to a self-targeting entity for 100 ticks with a velocity of 20. ```yaml SpinningSpider: Type: SPIDER Skills: - spin{duration=100;velocity=20} @self ~onTimer:100 ``` -------------------------------- ### Example Drop Table Configuration Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/changelogs/pre-2.0_changelogs This example demonstrates how to configure drop tables to include experience and item drops with specified amounts and chances. Chance is an integer between 0 and 1, with 1 being a 100% chance. Amount can be a number or a range. ```yaml SkeletonKingDrops: Drops: - 371:0 32-64 1 - exp 100 ``` -------------------------------- ### Line Targeter Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Targeters/Line Demonstrates using the Line targeter with a radius of 0.5 to apply effects. ```yaml ExampleSkill1: Skills: - skill{s=ExampleSkill2} @Forward{f=10} ExampleSkill2: Skills: - effect:particles @Line{r=0.5} ``` -------------------------------- ### Arm Animation Skill Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/ArmAnimation This is a basic example of how to apply the arm animation mechanic to a skill. It targets the caster ('@self'). ```yaml Skills: - armAnimation @self ``` -------------------------------- ### Push Block Example - YAML Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Mechanics/PushBlock This example demonstrates pushing a block forward towards a wall, targeting a specific area in front of the caster. The wall is defined by its distance, height, and width. ```yaml Skills: - pushblock{dir=@Forward{f=1}} @ForwardWall{f=5;y=1;h=2;w=2} ``` -------------------------------- ### OriginDistanceFromPin Condition Example Source: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Skills/Conditions/OriginDistanceFromPin This example demonstrates how to use the OriginDistanceFromPin condition to check if the origin is more than 10 units away from the 'example_pin'. ```yaml Conditions: - originDistanceFromPin{pin=example_pin;d=>10} true ```