How to make Better Enemies in Custom NPCs mod | Part 3

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

ความคิดเห็น • 24

  • @npcwarplus2395
    @npcwarplus2395  ปีที่แล้ว +6

    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

    • @maximomartin2529
      @maximomartin2529 ปีที่แล้ว +1

      This was a long video. Will you do New Era of Villagers Part 3 tommorow?

    • @npcwarplus2395
      @npcwarplus2395  ปีที่แล้ว +1

      @@maximomartin2529 No, it will be finished in the next week.

    • @maximomartin2529
      @maximomartin2529 ปีที่แล้ว +1

      @@npcwarplus2395 Oh sure! But does that mean no video tommorow, or just something else?

    • @Maxixegame
      @Maxixegame หลายเดือนก่อน

      the puppet function does not appear in my game

    • @npcwarplus2395
      @npcwarplus2395  หลายเดือนก่อน

      @@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).

  • @Stikgamer2010
    @Stikgamer2010 ปีที่แล้ว +3

    These enemies look like they're from DOOM

  • @Pagong27
    @Pagong27 ปีที่แล้ว

    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.

  • @daniel655.21B
    @daniel655.21B 9 หลายเดือนก่อน +1

    // 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();
    }
    });
    }

  • @ScarzEdit
    @ScarzEdit ปีที่แล้ว +1

    Is there a similar mod like LOTR?? Because It doesn't work

    • @npcwarplus2395
      @npcwarplus2395  ปีที่แล้ว +1

      You can try to use a bit older version of LOTR mod, or you can try to launch game without other mods or shaders.

    • @ScarzEdit
      @ScarzEdit ปีที่แล้ว

      @@npcwarplus2395 thanks

  • @N1ghtc1
    @N1ghtc1 ปีที่แล้ว

    Can you please tell me if its possible to make the NPC execute a command after dying?

  • @jakisludek1506reallname
    @jakisludek1506reallname ปีที่แล้ว

    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?

    • @npcwarplus2395
      @npcwarplus2395  ปีที่แล้ว

      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.

    • @jakisludek1506reallname
      @jakisludek1506reallname ปีที่แล้ว

      @@npcwarplus2395 i can't find the NPC+ mod

  • @NoofGamingYT
    @NoofGamingYT ปีที่แล้ว +1

    Bro can you make a Video on how to make a horse with warrior npc pls make a video

    • @HolyNamed
      @HolyNamed ปีที่แล้ว

      He has I'm pretty sure

    • @NoofGamingYT
      @NoofGamingYT ปีที่แล้ว

      @@HolyNamed i also

  • @rulos4754
    @rulos4754 ปีที่แล้ว

    hi i have a question
    do u know how to make npcs to use shields or use potions?

    • @npcwarplus2395
      @npcwarplus2395  ปีที่แล้ว +1

      You must use scripts to do it, without them you can make only imitation of NPC using shield or potion.

    • @rulos4754
      @rulos4754 ปีที่แล้ว

      @@npcwarplus2395 thanks

  • @unearthly6307
    @unearthly6307 ปีที่แล้ว

    I think youtube is trying to tell me something

  • @daniel655.21B
    @daniel655.21B 9 หลายเดือนก่อน

    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();
    }
    });
    }
    }