Solved Spawn mythicmobs

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

HackerOTVW

Active Member
Sep 10, 2017
91
2
8
22
I want to spawn a mythicmob using mmSkriptAddon, this is the code:
code_language.skript:
options:
    world: TestWorld

function mmSpawnMobs(name: text, loc: text):
    # format location: {_loc} -> {_locSpawn}
    spawn mythicmob "%{_name}%" at location {_locSpawn} in world "{@world}"

and i get this error:
code_language.skript:
Can't understand this condition/effect: spawn mythicmob "TestMob" at location {_locSpawn} in world "TestWorld"

Server: MC 1.11.2
Skript: 2.3 beta 6
mmSkriptAddon: 0.95b
MythicMobs: 4.5.0
WorldEdit, Skript, SkUniversal, skDragon, skUtilities, SkQuery, skript-mirror, HolographicDisplays, Holograms, SkStuff, WorldGuard, Skellett, skRayFall, MythicMobs, SharpSK, mmSkriptAddon
 
Last edited:
Everything is fine, no errors
[doublepost=1545990259,1545964981][/doublepost]Update: i also use
code_language.skript:
on mythicmobs skriptskillevent:
    if skill-name is "ZombieDie":
           AddCoin(skill-trigger) #my function
and it works perfectly, just get error from effect spawn mythicmob
 
code_language.skript:
options:
    world: TestWorld
 
function mmSpawnMobs(name: text, loc: text):
    # format location: {_loc} -> {_locSpawn}
    set {_world} to {@world}
    set world of {_locSpawn} to "%{_world}%" parsed as a world
    spawn mythicmob "%{_name}%" at location {_locSpawn} with level 1
 
code_language.skript:
options:
    world: TestWorld
 
function mmSpawnMobs(name: text, loc: text):
    # format location: {_loc} -> {_locSpawn}
    set {_world} to {@world}
    set world of {_locSpawn} to "%{_world}%" parsed as a world
    spawn mythicmob "%{_name}%" at location {_locSpawn} with level 1
Thanks
code_language.skript:
spawn mythicmob "%{_name}%" at location {_locSpawn} with level 1
work when using SharpSK but i still don't understand why mmSkriptAddon doesn't work ???
 
Status
Not open for further replies.