Download link for finished NPCs and skins (let me know if everything works): www.mediafire.com/file/jy7ybwpxaczjknw/NPC_WAR%2527s_Enemies.zip/file Script was made by Hankcolewu: www.youtube.com/@Hankcolewu/videos
Tutorial on how to make NPCs seem like they're doing target practice by making them shoot invisible NPCs standing next to a random object when? I know how to make NPCs behave like they're doing target practice, but you should make one.
// Function to check if an entity is an instance of Custom NPC entity function isCustomNPC(entity) { return (entity != null && entity != undefined); } // Check if NPC has a mount or rider let mount = event.npc.getMount(); let rider = event.npc.getRider(); // Check if both the mount and rider exist if (isCustomNPC(mount) && isCustomNPC(rider)) { // If both rider and mount exist, apply damage to both entities simultaneously event.npc.hurt(event.damage); rider.hurt(event.damage); // Listen for the death of the mount or rider and kill the other entity if one dies mount.deathHandler.add(() => { if (isCustomNPC(rider)) { rider.kill(); } }); rider.deathHandler.add(() => { if (isCustomNPC(mount)) { mount.kill(); } }); }
Yes, but I use unofficial updated version of this mod - Custom NPC+ that in my opinion is better than orginal version for 1.7.10 because it include new fetures.
for lazy ppl if(!event.npc.timers.has(1)){ if(event.npc.getMount()){ var mount = event.npc.getMount() mount.timers.forceStart(1,2,false) mount.hurt(event.damage)} if(event.npc.getRider()){ var rider = event.npc.getRider() rider.timers.forceStart(1,2,false) rider.hurt(event.damage)}} 1.16.5 // Function to check if an entity is an instance of Custom NPC entity function isCustomNPC(entity) { return (entity instanceof Java.type("noppes.npcs.entity.EntityCustomNpc")); } // Check if NPC has a mount or rider let mount = event.npc.getMount(); let rider = event.npc.getRider(); // Check if the mount is an instance of Custom NPC entity if (isCustomNPC(mount)) { // Check if NPC has a rider and if the rider is an instance of Custom NPC entity if (rider && isCustomNPC(rider)) { // If both rider and mount are Custom NPCs, apply damage to both entities simultaneously event.npc.hurt(event.damage); rider.hurt(event.damage); // Listen for the death of the mount or rider and kill the other entity if one dies mount.deathHandler.add(() => { if (rider && isCustomNPC(rider)) { rider.kill(); } }); rider.deathHandler.add(() => { if (mount && isCustomNPC(mount)) { mount.kill(); } }); } }
Download link for finished NPCs and skins (let me know if everything works):
www.mediafire.com/file/jy7ybwpxaczjknw/NPC_WAR%2527s_Enemies.zip/file
Script was made by Hankcolewu:
www.youtube.com/@Hankcolewu/videos
This was a long video. Will you do New Era of Villagers Part 3 tommorow?
@@maximomartin2529 No, it will be finished in the next week.
@@npcwarplus2395 Oh sure! But does that mean no video tommorow, or just something else?
the puppet function does not appear in my game
@@Maxixegame So, you use old version of Custom NPCs mod (probably). I use Custom NPC+ (unofficial updated version of this mod for 1.7.10).
These enemies look like they're from DOOM
Tutorial on how to make NPCs seem like they're doing target practice by making them shoot invisible NPCs standing next to a random object when?
I know how to make NPCs behave like they're doing target practice, but you should make one.
// Function to check if an entity is an instance of Custom NPC entity
function isCustomNPC(entity) {
return (entity != null && entity != undefined);
}
// Check if NPC has a mount or rider
let mount = event.npc.getMount();
let rider = event.npc.getRider();
// Check if both the mount and rider exist
if (isCustomNPC(mount) && isCustomNPC(rider)) {
// If both rider and mount exist, apply damage to both entities simultaneously
event.npc.hurt(event.damage);
rider.hurt(event.damage);
// Listen for the death of the mount or rider and kill the other entity if one dies
mount.deathHandler.add(() => {
if (isCustomNPC(rider)) {
rider.kill();
}
});
rider.deathHandler.add(() => {
if (isCustomNPC(mount)) {
mount.kill();
}
});
}
Is there a similar mod like LOTR?? Because It doesn't work
You can try to use a bit older version of LOTR mod, or you can try to launch game without other mods or shaders.
@@npcwarplus2395 thanks
Can you please tell me if its possible to make the NPC execute a command after dying?
hello so i wanna ask you something do you using custom npc mod on Version 1.7.10 and the mod is actually working on 1.7.10 version?
Yes, but I use unofficial updated version of this mod - Custom NPC+ that in my opinion is better than orginal version for 1.7.10 because it include new fetures.
@@npcwarplus2395 i can't find the NPC+ mod
Bro can you make a Video on how to make a horse with warrior npc pls make a video
He has I'm pretty sure
@@HolyNamed i also
hi i have a question
do u know how to make npcs to use shields or use potions?
You must use scripts to do it, without them you can make only imitation of NPC using shield or potion.
@@npcwarplus2395 thanks
I think youtube is trying to tell me something
for lazy ppl
if(!event.npc.timers.has(1)){
if(event.npc.getMount()){
var mount = event.npc.getMount()
mount.timers.forceStart(1,2,false)
mount.hurt(event.damage)}
if(event.npc.getRider()){
var rider = event.npc.getRider()
rider.timers.forceStart(1,2,false)
rider.hurt(event.damage)}}
1.16.5
// Function to check if an entity is an instance of Custom NPC entity
function isCustomNPC(entity) {
return (entity instanceof Java.type("noppes.npcs.entity.EntityCustomNpc"));
}
// Check if NPC has a mount or rider
let mount = event.npc.getMount();
let rider = event.npc.getRider();
// Check if the mount is an instance of Custom NPC entity
if (isCustomNPC(mount)) {
// Check if NPC has a rider and if the rider is an instance of Custom NPC entity
if (rider && isCustomNPC(rider)) {
// If both rider and mount are Custom NPCs, apply damage to both entities simultaneously
event.npc.hurt(event.damage);
rider.hurt(event.damage);
// Listen for the death of the mount or rider and kill the other entity if one dies
mount.deathHandler.add(() => {
if (rider && isCustomNPC(rider)) {
rider.kill();
}
});
rider.deathHandler.add(() => {
if (mount && isCustomNPC(mount)) {
mount.kill();
}
});
}
}