#can i make npcs with skript?

1 messages · Page 1 of 1 (latest)

minor depot
#

so i am new to skript and wanted to know if i can make an npc with a custom name and when you right click on the npc it will teleport you to somewhere else in the world, will i need other plugins i have no idea.

maiden scarab
#

you'd have to use an addon that supports npc creation

lost shadow
#

why use anything just summon one, and use sk to tp

minor depot
#

I have citizens but I don't know how to link it cus I tried with just citizens but the permissions on citizens are a bit weird

lost shadow
#

again no need for a plugin "summon"

#

use "if villager is named (name)"

maiden scarab
#

npcs aren’t villagers

lost shadow
#

same thing

maiden scarab
#

no

lost shadow
#

works for me

#

maybe .. been a while maybe they change it, used to work for me.. but haven played maybe 8 months

#

entity then

#
    name of clicked entity is "Event"
    cancel event
    broadcast "test"```
#

change broadcast to teleport player

#

and change word "villager" to whatever mob ur using

fading topaz
lost shadow
#

whyuse plugins

fading topaz
#

If you are using villagers that’s easier

fading topaz
lost shadow
#

plugins break

#

just summon with no ai boom done

#

then use sk for right click boom easy

fading topaz
#

If you want client side or player npcs you need to use packets

lost shadow
#

player yes.. but all mobs u can summon

fading topaz
#

Yeah, but client side is still more efficient if you want to try that

#

Because the entity doesn’t really exists so the server doesn’t tick anything

lost shadow
#

i just did with a bee and added tp to spwan and work just fine

fading topaz
#

Yeah spawning mobs without ai works

lost shadow
#

less chance of issues too

fading topaz
lost shadow
#

ah.. what does the job why make things hard for self..lol

#

summon a bee no ai and use this and works fine

#
    name of clicked entity is "Event"
    cancel event
    teleport event-player to spawn```
fading topaz
#

Yeah that works fine

#

Make sure you have code for if the bee despawns or the server restarts

lost shadow
#

thats done in the summon

#

i added silent noai and presistent

#

so wont despawn

#

i will say its been a while as my old code dont work like Tarna said

#

lot changes in 8 months

#

oh and should add, whats the one so cant hurt

#

invulnerability?

fading topaz
#

Pretty sure