Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 159
    • Issues 159
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
  • UsefulTips

UsefulTips · Changes

Page history
Update UsefulTips authored Jul 19, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 17 additions and 2 deletions
+17 -2
  • UsefulTips.md UsefulTips.md +17 -2
  • No files found.
UsefulTips.md
View page @ 49239864
......@@ -11,7 +11,8 @@ Table of contents:
### Overrides
<details><summary>My PILLAGER override is not giving bad omen</summary>
<br>
This is a common issue. To fix this, consider adding the following skill to your PILLAGER mob override:
This is a common issue. To fix this, consider adding the following skill to your PILLAGER mob override:
 
```yaml
Skills:
......@@ -41,7 +42,7 @@ This is a common issue. To fix this, consider adding the following skill to your
<details><summary>Let every player that took part in the fight receive a drop</summary>
<br>
This can be done by enabling the mob's [ThreatTable Module](/Mobs/ThreatTables) and by executing the following mechanic when the mob dies:
<br>
 
```yaml
Skills:
......@@ -54,6 +55,7 @@ In this manner, the mob will drop the droptable named `droptable_name` to every
<details><summary>Let only the X players who dealt the most damage receive a drop</summary>
<br>
This can be done by enabling the mob's [ThreatTable Module](/Mobs/ThreatTables) and by executing the following mechanic when the mob dies:
 
```yaml
Skills:
......@@ -69,6 +71,7 @@ While this method is not necessarily precise (threat can decay, among other thin
<details><summary>Let only the player who dealt the most damage receive a drop</summary>
<br>
This can be done by enabling the mob's [ThreatTable Module](/Mobs/ThreatTables) and by executing the following mechanic when the mob dies:
 
```yaml
Skills:
......@@ -76,4 +79,16 @@ This can be done by enabling the mob's [ThreatTable Module](/Mobs/ThreatTables)
```
While this method is not necessarily precise (threat can decay, among other things) it's extremely simple to implement and the precision is in an acceptable range
</details>
<details><summary>Drop items to the last player that hit the mob</summary>
<br>
In this case, you will need to set a variable on the mob every time it is hit only if the trigger is a Player. Then, onDeath, you can use a UUID targeter to drop a specific item to whoever the variable is memorizing. This way, even if the mob dies for some other causes (Fire damage, Fall damage etc.), a player will always be selected for the drop, and is, as such, far more stable than dropping an item onDeath to the trigger.
 
```yaml
Skills:
- setvariable{var=caster.lastplayer;type=STRING;val=<trigger.uuid>} @self ~onDamaged ?~isPlayer
- dropitem{...} @UUID{u="<caster.var.lastplayer>"} ~ronDeath ?variableisset{var=caster.lastplayer}
```
</details>
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Extra: Disguises
  • Extra: Vanilla Mobs
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples
Useful Tips