Resource icon

Addon MythicMobs Skript Addon 0.90a

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Update to work with 1.12.1
Updates in v0.89a (not gone 90 needs some testing)
Added new expression convert %entity%(%player%) into mythicmob %string% with level %number%
Added new effect remove mythic from activemob %activemob%


convert %entity%(%player%) into mythicmob %string% with level %number%
- for all living entities including players.
- if you use a player the mythicmobs type need to be persistent true! and you have to handle world changing and deaths otherwise mythicmobs will crash.

remove mythic from activemob %activemob%
- make every mythicmobs into a common bukkit entity. including players.
#### Example:
code_language.skript:
Skript part:
on right click:
if player's tool is a arrow:
broadcast "now doing some mythics!"
set {_am} to convert player into mythicmob "MythicPlayer" with level 1
broadcast "%uuid of activemob {_am}%"
Added new class skilltargeter
Added new expression mythicmobs targeter %string%
Added new expression targetentities of %entity% for targeter %skilltargeter%
Added new expression targetlocations of %entity% for targeter %skilltargeter%

mythicmobs targeter %string%
- %string% is any valid mythicmmobs targeter
- set {_targeter} to mythicmobs targeter "@PIR{r=30}"
- will set the targeter to pir with radius 30

targetentities of %entity% for targeter %skilltargeter%
- set {_targeter} to mythicmobs targeter "@PIR{r=30}"
- set {_targets::*} to targetentities of event-entity for targeter {_targeter}
- first set the {_targeter} to @pir{r=30} and then filter all players for entity event-entitiy with targeter {_targeter}

targetlocations of %entity% for targeter %skilltargeter%
- set {_targeter} to mythicmobs targeter "@Ring{radius=10;points=5}"
- set {locations::*} to targetlocations of event-entity for targeter {_targeter}
- first set the {_targeter} to @Ring{radius=10;points=5} and then create a ring of locations for entity event-entitiy with targeter {_targeter}

Targeters can be used for any entity or player. It dont have to be an MythicMob.

Code:
on right click on entity:
      set {_targeter} to mythicmobs targeter "@Ring{radius=10;points=5}"
      if "%{_targeter}%" is "EntitySelector":
          set {_targets::*} to targetentities of event-entity for targeter {_targeter}
          broadcast "%{_targets::*}%"
      else if "%{_targeter}%" is "LocationSelector":
          set {_targets::*} to targetlocations of event-entity for targeter {_targeter}
          broadcast "%{_targets::*}%"
  • Like
Reactions: Green_Lothar
** Update 26.3.2017 v0.82a

Conditions:

activemob %activemob% has immunitytable
- Test if activemob has immunitytable enabled

Effects:

set damage of activemob %activemob% to %number%
- Change the attackdamage

set knockbackresist of activemob %activemob% to %number%
- Change Knockback resist

set armor of activemob %activemob% to %number%
- Change armor stats (only >1.9)

set attackspeed of activemob %activemob% to %number%
- Change attackspeed (only >1.9)

set followrange of activemob %activemob% to %number%
- Change follow range

set speed of activemob %activemob% to %number%
- Change movement speed

trigger %string% for activemob %activemob%
trigger %string% for activemob %activemob% with triggerentity %entity%

- Trigger activemob for trigger defined in %string%
- Valid triggers are: DEFAULT, ATTACK, BOW_HIT, BLOCK, COMBAT, CROUCH, UNCROUCH, DAMAGED, DROPCOMBAT, DEATH, ENTERCOMBAT, EXPLODE, INTERACT, KILL, KILLPLAYER, PLAYERDEATH, SHOOT, SIGNAL, SPAWN, SPLASH_POTION, SWING, TARGETCHANGE, TELEPORT, TIMER, USE, READY

Example:
code_language.skript:
skript part:

on damage of entity:
    victim instanceof activemob
    event-entity is arrow
    set {_am} to activemob of victim
    trigger "bow_hit" for activemob {_am} with triggerentity attacker
    
Mob.yml:

Monkey:
  Type: zombie
  Display: "MythicMobs Monkey"
  Health: 40
  Armor: 10
  Skills:
  - message{msg="Ouch! Stop shooting arrows at me!"} @trigger ~onBowHit 1