chore: cleanup
Development builds
Latest builds
fix: add loadchunks option to BlocksInRadius and BlocksNearOrigin (#10135)
View 6 more changes
- - Added `loadchunks` (alias `lc`) to `@BlocksInRadius` and `@BlocksNearOrigin`
- - `true` (default) loads chunks like before, `false` skips blocks in unloaded chunks
- - Use `false` in worlds that get unloaded, like dungeon instances, so skills don't freeze when the world closes
- ```yaml
- - log{m="<target.l.x>,<target.l.y>,<target.l.z>"} @BlocksInRadius{r=3;ry=2;no=true;lc=false} ~onSpawn
- ```
fix: parse ranges with a negative upper bound and log invalid numeric math once (#10141)
feat: load packs from folders listed in ImportMPacks (default ./mythic/)
fix: print coordinates in invalid location warnings (#10140)
fix: cross-world and async race exceptions in skills (#10139)
feat: add bulletFollowRotation option to MOB bullets (#10128)
View 6 more changes
- - Added `bulletFollowRotation` (alias `bfr`, default `true`) to `MOB` bullets
- - `true` works as before: the bullet mob copies the projectile's rotation every tick, so on orbitals it turns with the entity it orbits
- - `false` makes the bullet mob keep its own rotation, so rotations set by its own skills stay
- ```yaml
- - orbital{bulletType=MOB;mob=SoulWisp;bfr=false;r=0;points=1;i=1;duration=99999;oy=1.9;hp=false;hnp=false} @self
- ```
feat: support placeholders in the particle material option (#10093)
feat: support placeholders and random ranges in villager Trades amounts (#10132)
fix: stop orbital MOB bullets copying the owner's rotation (#10128)
fix: stop suicide leaving mobs alive at 1 HP (#10129)
fix: iterate a one-map list variable once in forEachValue and dialog ForEach (#10130)
perf: small speedups for mob spawns, blockMask, teleport and distanceFromSpawn
View 5 more changes
- - Mob spawns check AIGoalSelectors and AITargetSelectors priorities about 6x faster
- - blockMask's per-player mask lookups are up to 9x faster on servers that cast it only occasionally
- - Reading an entity's name is almost 2x faster
- - Applying attribute stats (movement speed, attack speed, follow range and similar) is about 1.5x to 2.7x faster
- - The distanceFromSpawn condition is about 10x faster
perf: skip per-call access checks in the ModelEngine navigation hook
perf: faster random spawn chunk scan (94 µs to 77 µs per player group)
fix: iterate a list of maps once per map in dialog ForEach and forEachValue (#10127)
feat: ping compensation for projectile hits and cooldowns
View 14 more changes
- Each player is compensated by their own ping, capped by `MaxPing` (off by default).
- Pros:
- - Dodges that worked on a laggy player's screen count, and stepping into a bullet still hits
- - Skill cooldowns no longer feel longer for players with high ping
- Cons:
- - Hits on laggy players land up to one ping later, and the bullet flies past them until then
- - `onHit` can run after `onEnd`, because players are still checked briefly after a projectile ends
- - High-ping players spamming a skill can cast up to one ping sooner per cooldown
- ```yaml
- Configuration:
- PingCompensation:
- Enabled: true
- MaxPing: 250
- ```
api: MythicSpawnLevelEvent for changing random spawn and spawner mob levels
View 2 more changes
- - Fired before a random spawner or a spawner spawns a mob, with the rolled level and the configured Level/MobLevel range (getMinLevel/getMaxLevel); setMobLevel changes the level the mob spawns at
- - RandomInt placeholder exposes getMin/getMax
fix: Folia region-thread errors in mechanics, targeters and trackers
View 12 more changes
- - Tracked players (nameplate, healthbar, castbar, speak, @TrackedPlayers) threw NoSuchFieldError on Folia/Canvas
- - weather, time, setchunkforceloaded and chunkload aura threw outside the global region
- - smokeswirl and shieldbreak used the Bukkit scheduler
- - Entity mechanics, block targeters, entity filters, block placeholders and owner/health/hasTag conditions failed on async lines
- - Totems never fired, slash never hit, @PlayersInRadius took ~2 region ticks per player
- - Legacy random spawning spawned nothing; activeinfo, activeremove and vanilla mm mobs spawn threw from console
- - explosion, lightning, setblocktype, breakblock, dropitem and summon threw on targets in another region
- - Targeter conditions failed open across regions, now fail closed
- - Parent/owner hurt goals, spawner healOnLeash and nameplate hologram close threw across regions
- - Mobs teleported into another region dropped out of ActiveMobs
- - beam and orbital armor stand bullets were broken on Paper too
- - setpathfindingmalus never loaded (wrong constructor signature)
fix: stop vanilla job loss from wiping Mythic villager trades (#10125)
added `Display: "something"` to droptables. Useful for people using API.
fix: read the DefaultItemOptions.PreventCrafting global from config-items.yml (cruci #327)
perf: skip discarded work on trigger, targeter, and placeholder paths
View 8 more changes
- - Trigger dispatch no longer builds the mob's display name and entity name for a debug message that is discarded when debug is off
- - The pin wand no longer reads an item's full metadata twice per right click
- - Config values with no placeholder in them no longer build a lookup context they never read
- - Targeters that return a single entity use a plain list instead of a hash set
- - Damage triggers no longer look up the damaged entity's name for a discarded debug message
- - Cooldown lookups no longer read the clock before checking whether the skill has any cooldown state
- - Skills no longer fire the skill event when no plugin is listening for it
- - Setting a variable builds one placeholder context instead of two
perf: reduce per-tick work in skill dispatch, mob lookups, and damage events
View 6 more changes
- - Skill mechanics no longer do a map lookup on every execution just to build a debug message that is discarded when debug is off
- - Damage events no longer compute the final damage value and event name for that same discarded debug message
- - Mob lookups by UUID do one registry lookup instead of two or three
- - Stats with no modifiers skip the modifier sum instead of building it on every recalculation
- - Metaskills with parameters copy their data once instead of twice
- - World lookups in the adapter resolve in one step instead of two
feat: spawner editing in /mm menu, mob create/delete, and fixes for dead buttons
View 30 more changes
- Spawner Browser
- - Opens again (previously errored out if you had any spawner)
- - Shows mob type, world, coords, live mob count, cooldown/warmup
- - Left-click to teleport, right-click to edit
- - Create a spawner at your location
- Spawner Editor (was empty)
- - Edit Mob Type, Mob Level, Max Mobs, Mobs Per Spawn, Cooldown, Warmup,
- Spawn Radius, Spawn Radius Y, Activation Range, Scaling Range,
- Leash Range, Chance, Group
- - Toggle Use Timer, Check For Players, Show Flames, Breakable,
- Heal On Leash, Reset Threat On Leash, Random Rotation, Use World Scaling
- - Delete spawner (typed confirmation), reset timers
- - Saves to file immediately
- Mob Browser / Editor
- - Create Mob and Delete Mob buttons now work
- - Search / Filter now filters the option list
- - New stats: Attack Speed, Flying Speed, Knockback Resistance,
- Follow Range, Step Height, Scale
- - Get Mob Egg button is visible again; right-click it to spawn the mob
- Commands
- - /mm menu spawners (alias: /mm menu s) opens the Spawner Browser
- - /mm menu spawners <name> opens that spawner's editor
- Fixes
- - Right-clicking Set Faction deleted the whole mob from its config file
- - Right-clicking Health/Damage/Armor silently errored instead of clearing
- - Removed or wired up buttons that did nothing, fixed copy-pasted
- "Create Mob" / "Filter Mobs" labels in the spawner menus
- - Toggle View no longer cycles a "Groups" mode identical to "Show All"
- - Drop Table and Random Spawning browsers are still unbuilt, but now
- say so instead of just playing a decline sound
fix: mob lookups before registration rebuilt the mob from PDC and fired ~onLoad
feat: Hidden option for metaskills, respected by more command suggestions
View 10 more changes
- - Keep internal mobs, items and skills out of tab-completes with
- `Hidden: true`.
- - Skills support it now, and it works in more places for mobs and items. Goes at the top level, not under Options:
- ```yaml
- my_utility_skill:
- Hidden: true
- Skills:
- - message{m="Called by other skills, never typed by hand"}
- ```
- - Hidden things still work, they just stop being suggested. You can spawn, give or cast them by full name, and `/mm mobs list` still shows everything.
fix: menu icon Hide was inert and TooltipStyle unsupported (#2313)
fix: inline ? and Conditions checked the target instead of the caster
View 1 more changes
- build 6088 caused small bug, now both sides should properly be fixed.
feat: riding, passenger and passengers placeholders
feat: execution audiences
fix: threattable called getEntities async
View 1 more changes
- ps: includes small performance gains too
fix: inline mechanic conditions checked the caster instead of the actual target
fix: itemissimilar never matched an empty slot against AIR
fix: mythic eggs threw IllegalAccessError on 26.2
fix: forced-sync metaskills ran on Folia's global region thread
feat: add text display opacity mechanic
feat: damage-dealt skill variable
View 7 more changes
- ```yaml
- Skills:
- - damage{a=10} @target
- - command{c="say took <skill.var.damage-dealt>"}
- ```
- Holds what the target actually took after armor and resistance (9.84 here), not the configured 10.
- Readable on any later line and inside a then block, on every damage mechanic.
fix: PreventVanillaDamage reported damage to ~onAttack (#2294)
feat: `then` option on the damage mechanic, held on the damage landing (#2309)
View 6 more changes
- ```yaml
- Skills:
- - damage{a=2;then=RecoilScreen} @PlayersInRadius{r=5}
- ```
- Until now there was no way to tell who a damage mechanic actually hit, only who was in the targeter's range. then runs a skill per target the damage was really applied to, skipping the ones that were invulnerable, dead, in immunity frames, or resistant.
- Shield-blocked hits still count as landed.
hide mechanic
fix: handle null spawner map in ClusterGenerator tick (Folia race)
Fixed the Velocity Placeholders as there was a previous bug related to how Minecraft handeled player velocity for ground movement
feat: added `ThreatTable.DropUnreachableSeconds: 10` option for mobs, allows you to configure how long a mob will take to drop a target that it cannot reach
Fixed runaigoal mechanic setting everything to priority 1 and stacking multiple not really working
extended functionality for Custom Equippable slots to allow more interesting behavior:
View 7 more changes
- - Added `Overrides:` which conditionally allows for changing configured attributes of a slot, such as their Material or Display
- - Added `AllowStackedItems` Function, which allows for items put into the slot to be of a stack instead of only one
- - Added `AllowedItems` Function, which when a list is given will allow items using the ItemMatcher (mythic IDs or vanilla item IDs, tags, etc)
- - If this is just set to `true` instead, will allow any items in the slot
- - Fixed bug with player data json writing, which causes Equippables to not persist between restarts/rejoins
- - Fixed a bug where vanilla items would be able to be somewhat placeable in equipslots in general, causing voiding of the items
- This is a two parter done via MM and Cruci
refactoring
feat: initial 26.1 support, requires java 25
fix: threat not dropping even if LOS is blocked for 10 seconds
fix: #2155