Minecraft Custom NPC Scripting setup 1.10

preview_player
Показать описание
Custom NPCs web site
Custom NPCs forum

Custom NPCs
Custom NPCs scripting channel

Patreon

Javascript
Рекомендации по теме
Комментарии
Автор

These new videos are soooo helpful. Really easy to understand and well made. Fair play

vinylvex
Автор

Thank you. Finnally understood how to use it in 1.12.
Here is my lua version hello world script:


function interact(event)
print("Hello world(console)")
event.npc:say("Hello world(global)")
end

道家深湖
Автор

at 4:05 the code i copied and the console is telling me: TypeError: Cannot read property "display" from undefined in <eval> at line number 3 ?? what ever

Maltebyte
Автор

How would one go about making a NPC execute a console command upon death? Like if I wanted it (Let's say it's a boss NPC) to go into another phase of the battle? Or if I wanted a special command done to the killing player? I do hope you respond, please and thank you.

Xephiro
Автор

you are the best
can you make a toutorial if i in the near of the npc the npc say hello
two second Later he say i Tell you the way and then he goes to Position.

erikpro
Автор

Hey, can you help me with this?
When I use this script for my player:

function just got "+event.exp)}

When I kill something the system just said "(my name) just got undefined" and I got no exp.

EDIT: I'm using 1.12.2

raoulpurba
Автор

why do i get error msg from this code? : function interact(event){

}
thanks guys!

Maltebyte
Автор

Can you tell me how to make npc1 teleport to npc2 when the npc1 target npc2. This is how i try to make it
function target(a)
a.npc.setPosition(a.x, a.y, a.z)

when i was making this i thought a = target that the npc is targeting so i put (a.x, a.y, a.z) so that it would teleport to the npc it targeting

dcpzero
Автор

i've been looking at the api to try and understand the events, but i'm not quite understanding how becomes only "function fallenUpon(event)", i'm trying to test my understanding by trying to call the player's name that touches the scripted block with "BlockEvent.CollidedEvent" instead of just copying your code. is there a way to understand the correct event names using ECMAScript?

vorpalthefox
Автор

Hi dude, I have a problem
How in ver. 1.10+ work setTempData
Console shows: event.npc.setTempData in not a function
What is my mistake?

Part of code

function init(event) {
event.npc.setTempData("target", null);
}

АлександрСкопинский-дч
Автор

Hello. I love your videos. I have a question. I am having trouble with the block.executeCommand when I have have apostrophes in the text. for example in the /tellraw command I want to display words like I'll or it's. Any help would be appreciated.

jonfunk
Автор

Sorry for my english, i don't speak Engish*

Hello! Could you help me with scripting? I want to do, that NPC at night will stronger(example, attack increase)?
I try do it, but it's don't working.

function update(event)
{
If (event.!world.isDay )
{

}
else
{

}
}

Could you found errors, please?

Don-ywpq
Автор

how can i say if npc health <=1000 change skin to damaged?

Maltebyte
Автор

When asking questions be sure to say which version because there can be BIG differences between them 1.8.9 to 1.12 ++

Daot
join shbcf.ru