#Summon mob

1 messages · Page 1 of 1 (latest)

iron elbow
#
    permission: op
    trigger:
        loop arg-2 times:
            spawn 3 {arg-1} at the targeted block

hello last line i followed the docs but skript still tell me he can't understand how to fix that thanks

acoustic oar
#

Idk what line is erroring but it assume it’s the last line

at player’s target block

use this instead of at the targeted block, that might still work but your not saying who’s targeted block so it doesn’t know what to use

#

Also that’s not how you reference arg-1

umbral canyon
#

also arg-1 is a text not entity type

native geyser
#

{arg-1} why the {}

#

also why u got <player> when ur using at the targeted block

#

😭

feral smelt
#

And it should be an entity type not a string

umbral canyon
#

yep

versed steppe
#
command /sum <entity type> <number> <player>:
    permission: op
    trigger:
        set {_block} to actual target block of arg 3
        spawn arg 2 of arg 1 at location of {_block}

If it still doesn't work for you, try this

feral smelt
#

why the heck are you not just making the arg an entity type....

versed steppe
#

Oh ye I was testing something

#

or with skbee

command /sum <entity type> <number> <player>:
    permission: op
    trigger:
        set {_block} to actual target block of arg 3
        spawn arg 2 of arg 1 at location of {_block}

on tab complete of "/sum":
    set tab completions for position 1 to all entity types
#

but only here the double names are not saved with _, which is why minecraft does not interpret it