Full script for 1.12.2, remember to enable scripts (1=amount of NPCs that you will spawn) (yourNPC= The NPC in SERVER SIDE clones that you will spawn): function died(event){ var me = event.npc; event.API.getClones().spawn(me.x,me.y,me.z,1,"yourNPC",event.npc.getWorld()); }
So I'm a rather new subscriber to your channel, and I'd like to suggest maybe going over the differences between 1.8/1.8.9 and 1.10.2 coding differences. Some of your videos don't apply to all versions of Minecraft, but if we know the differences, maybe we can troubleshoot better ourselves? Either way, this channel has been a HUGE help for me, got me re-interested in coding so thanks! XD As someone with very little experience, I'd like to say I really appreciate it, because this is the only channel on RUclips with regularly updated content on scripting.
I don't know what you mean by where, but skill wise all I can really do is understand and follow along with your explanations of the code, but not actually intuitively write it myself. I have minecraft 1.10.2. What really throws me off is 1.8 doesn't seem to need "function dialog(event)" but already has it built in I guess? I was specifically looking at your transporter pay video, since you put the two versions of code side by side and I can compare the two.
Yes in 1.8 and before the functions were "built-in" the tabs on the side Now everything needs to be in a function like function "hook name"(event) Look in the description there are links to Noppes web site with the hooks and command (APi) Also join the discord scripting channel where there are many simple examples etc.
the new command doesnt seem to be working for me on 1.12.2 I'm using event.API.getClones().spawn(pX,pY,pZ,1,"Aoi ken",event.npc.getWorld()); and it isn't spawning it from my tab 5 and also after I kill Aoi ken how would i get him to spawn a different version
To Jester Jest -- I can see you comment in the notifications but not here? May be your banned from our country? ;( yes you could do this in 1.7 - it could be converted fairly easily
I am stuck with a problem while making this...... The thing is that I am trying to spawn someone after the death... I did exactly as in the Video but it doesn't work..... What version is this? I am at 1.7.10, so I'm not sure that will change anything. Also, one more thing! Can you tell me a way to fix this?
I looked all over and I can't find a 1.7.10 version, if somehow you do find a 1.7.10 version of this please send me a link to a video or some type of source.
world.spawnClone(npc.getBlockX()+1,npc.getBlockY(),npc.getBlockZ(),5,"B2"); in the DIED tab the 5 is the server clone tab where the clone B2 is located.
Excellent, thank you - I'll get back to you if I have any issues. I'm baffled how your videos only have a hundred views when you are basically the ONLY source of this kind of information for Custom NPCs. I don't know how people make custom maps otherwise.
you could put in event.source.setPosition(x,y,z); this would set the position of the entity that killed it to that position To be safe if the "source" of the damage that kills it is not an entity (player) then you would need to put it in an if statement if (event.source){ event.source.setPosition(x,y,z); } the source would be null if its anything but a player or entity
Hey - Is there a way for a player to collide/interact (preferably interact) with an NPC then take the skin of the NPC? (Essentially a person has a Steve skin, they interact with an NPC with a Herobrine skin then both the player _and_ the NPC have the Herobrine skin) I've been trying for a few weeks (on and off) and can't figure it out... (I'm pretty new to this.. heh..) I have a feeling that you'd need to put the specific skin URL in the script but.. I have no idea really.. xD Nice video by the way! Dropped a like for ya :D
The cloner tool (wooden ax) has 3 tabs the first - clones - is to save and spawn local clones the last tab - server - is to save and clone from the server directory
Thank you for a wonderful videoHowever! it was not available in 1.7.10Would not you tell me the script of 1.7.10 if you want. I am Japanese. I am not good at English. Please forgive...
I might have time later to make a complete script for 1.7 but I think it would just be something like this world.spawnClone(npc.getBlockX()+1,npc.getBlockY(),npc.getBlockZ(),5,"B2"); in the DIED tab the 5 is the server clone tab where the clone B2 is located.
Full script for 1.12.2, remember to enable scripts (1=amount of NPCs that you will spawn) (yourNPC= The NPC in SERVER SIDE clones that you will spawn):
function died(event){
var me = event.npc;
event.API.getClones().spawn(me.x,me.y,me.z,1,"yourNPC",event.npc.getWorld());
}
Thank you brosky
So I'm a rather new subscriber to your channel, and I'd like to suggest maybe going over the differences between 1.8/1.8.9 and 1.10.2 coding differences. Some of your videos don't apply to all versions of Minecraft, but if we know the differences, maybe we can troubleshoot better ourselves?
Either way, this channel has been a HUGE help for me, got me re-interested in coding so thanks! XD As someone with very little experience, I'd like to say I really appreciate it, because this is the only channel on RUclips with regularly updated content on scripting.
I should go back and make two play lists at least - organization where are you?
thanks
I don't know what you mean by where, but skill wise all I can really do is understand and follow along with your explanations of the code, but not actually intuitively write it myself. I have minecraft 1.10.2.
What really throws me off is 1.8 doesn't seem to need "function dialog(event)" but already has it built in I guess? I was specifically looking at your transporter pay video, since you put the two versions of code side by side and I can compare the two.
Yes in 1.8 and before the functions were "built-in" the tabs on the side
Now everything needs to be in a function like
function "hook name"(event)
Look in the description there are links to Noppes web site with the hooks and command (APi)
Also join the discord scripting channel where there are many simple examples etc.
I see, thanks for the resources!!
the new command doesnt seem to be working for me on 1.12.2 I'm using event.API.getClones().spawn(pX,pY,pZ,1,"Aoi ken",event.npc.getWorld()); and it isn't spawning it from my tab 5 and also after I kill Aoi ken how would i get him to spawn a different version
can we get a new video of this plz
To Jester Jest -- I can see you comment in the notifications but not here? May be your banned from our country? ;(
yes you could do this in 1.7 - it could be converted fairly easily
I am stuck with a problem while making this...... The thing is that I am trying to spawn someone after the death... I did exactly as in the Video but it doesn't work..... What version is this? I am at 1.7.10, so I'm not sure that will change anything. Also, one more thing! Can you tell me a way to fix this?
This is for 1.10 look a little further down for how to do it in 1.7
I looked all over and I can't find a 1.7.10 version, if somehow you do find a 1.7.10 version of this please send me a link to a video or some type of source.
world.spawnClone(npc.getBlockX()+1,npc.getBlockY(),npc.getBlockZ(),5,"B2");
in the DIED tab
the 5 is the server clone tab where the clone B2 is located.
I have one more question, what happens if we want to use a different NPC, do we change the "B2" to another name? Also, thanks!
Y e s
wii this work in version 1.12.2?
in the description, I show an update command for 1.12
How do i set how many times it respawn or how many lives ot has ?😢
You could set a world variable with setStoreddata.
doesnt work
You're GOD
How would I accomplish this in the 1.7.10 version? Would this go under the "NPC killed" tab?
yes
Excellent, thank you - I'll get back to you if I have any issues. I'm baffled how your videos only have a hundred views when you are basically the ONLY source of this kind of information for Custom NPCs. I don't know how people make custom maps otherwise.
in 1.7 its going to be
world.spawnClone()
[for some reason I can see your messages in the notifications but not here]
Thank you. I posted the messages initially but deleted them once I figured out the issues. Appreciate your help though!
how would i use the function to teleport the player ?
you could put in event.source.setPosition(x,y,z);
this would set the position of the entity that killed it to that position
To be safe if the "source" of the damage that kills it is not an entity (player) then you would need to put it in an if statement
if (event.source){
event.source.setPosition(x,y,z);
}
the source would be null if its anything but a player or entity
Hey -
Is there a way for a player to collide/interact (preferably interact) with an NPC then take the skin of the NPC? (Essentially a person has a Steve skin, they interact with an NPC with a Herobrine skin then both the player _and_ the NPC have the Herobrine skin) I've been trying for a few weeks (on and off) and can't figure it out... (I'm pretty new to this.. heh..) I have a feeling that you'd need to put the specific skin URL in the script but.. I have no idea really.. xD
Nice video by the way! Dropped a like for ya :D
not that I know of -- I'll look in to it
Hey are you able to do this on 1.7.10???
Yes, instead of functions you put the script in the died tab
How to get them in server save.
The cloner tool (wooden ax) has 3 tabs the first - clones - is to save and spawn local clones the last tab - server - is to save and clone from the server directory
Thanks M8
wii this work in 1.8.9?
Looks like it should - the vid is in 1.10 but I don't see any conflict
@@Daot Oh ok.
Thank you for a wonderful videoHowever!
it was not available in 1.7.10Would not you tell me the script of 1.7.10 if you want.
I am Japanese.
I am not good at English.
Please forgive...
I might have time later to make a complete script for 1.7 but I think it would just be something like this
world.spawnClone(npc.getBlockX()+1,npc.getBlockY(),npc.getBlockZ(),5,"B2");
in the DIED tab
the 5 is the server clone tab where the clone B2 is located.
Oh!
Thank You!!!
I'm sorry.
If you want, please tell me how to let npc despong.
I'm really sorry...