Mcreator: How to make mobs with custom effects on hit

Поділитися
Вставка
  • Опубліковано 16 вер 2024

КОМЕНТАРІ • 35

  • @vilsorce
    @vilsorce 7 місяців тому +2

    thanks a lot man. I was trying to make a potion effect that makes it so that when you punch something, that entity gets weakness or poison. But you only have this ability as long as the potion effect is active. Your video helped a lot

  • @flameburnt7829
    @flameburnt7829 2 місяці тому

    Holy hell thanks a lot man this helped so much your the only person I've seen that has done this.
    I'll make sure to give credit once my mod is done. Thanks again

    • @askindale4943
      @askindale4943  2 місяці тому

      that's great to hear. let me know what your mod is called when its done i'd love to check it out.

  • @JOGOKASZALOT
    @JOGOKASZALOT 2 місяці тому +1

    omg thank you so much bro you are a life saver fr

  • @Shady-sx6dm
    @Shady-sx6dm 6 місяців тому

    You saved me from even more hours of reflections and searches, you awesome, God bless you!

  • @bastimatteo4795
    @bastimatteo4795 2 місяці тому

    Thanks :) alot of help

  • @mr.slappii513
    @mr.slappii513 5 місяців тому

    I tried this and copied it 1 to 1 and it doesn't work. I'm trying to make a ghost mob that inflicts the player with weakness when it hits them but I couldn't get it to work. Any ideas?

    • @askindale4943
      @askindale4943  5 місяців тому

      2:27 If your ghost mob is a custom geckolib model, then you should use the procedure at the timestamp. Make sure that the entity has been chosen where it says (sub)type of [Ghost mob]. Check to make sure its the source entity instead of "Event/target entity" (yeah its absolutely my fault that i didn't specify this in the video.) @ 3:30 is my particular custom geckolib mob he is called "A12" in the mcreator mod files which is why the example has a12.

    • @mr.slappii513
      @mr.slappii513 5 місяців тому

      @@askindale4943 Ok I just didn't make it the source entity. That was completely my fault.

  • @jeemjobblejipjenjinsenjens6072
    @jeemjobblejipjenjinsenjens6072 6 місяців тому

    for some reason it said i had missing components but said it was missing exactly what i had, then it corrupted my mob until i deleted it. Idk what to do...I can't get my mob to melee like a husk

    • @jeemjobblejipjenjinsenjens6072
      @jeemjobblejipjenjinsenjens6072 6 місяців тому

      i also dont know which of the 9 procedures to put it under on the mob

    • @askindale4943
      @askindale4943  6 місяців тому +1

      @bblejipjenjinsenjens6072 in the video i have 3 tests. 2 of them are using the standard biped attack animations and the other one is using a Geckolib model that has custom animations. if your mob is using the biped model it should attack just like a normal husk. if you're using a geckolib model you need to add your own animations.
      Also in response to your question about the 9 procedures. The great thing about this procedure it's considered a global event trigger which means it does not need to be assigned to the specific mob. It is assigned to all mobs that the requirements it needs to activate the procedure.
      If you need further help don't hesitate to comment here.

  • @GorillaTagLover-do6vw
    @GorillaTagLover-do6vw 3 місяці тому

    it doesn't work i trid it and copyed and mine is geckolib abd it dont work pls help and also does does work with custom particals or potions

    • @askindale4943
      @askindale4943  3 місяці тому

      For me to help you, I will need you to give as much information as you can. (Please proof read your comments if you do this, it will make it much easier to help you.) If you can upload a video and send me the link that would be even better.
      The information I need:
      - What you are trying to achieve.
      - If you have followed the tutorial exactly. (recheck to make sure you've done it, this is a general tip either way)

    • @GorillaTagLover-do6vw
      @GorillaTagLover-do6vw 3 місяці тому

      @@askindale4943 -What you are trying to achieve - i am trying to achieve making a geckolib model when it attacks you it gives you a custom status and it also acts like poison | - If you have followed the tutorial exactly. (recheck to make sure you've done it, this is a general tip either way) - i checked the tutorial 5 times and when i do second procedure i copy it and it doesn't hurt the player | Extra Message: Are you allowed to use custom effects?

    • @askindale4943
      @askindale4943  3 місяці тому

      @@GorillaTagLover-do6vw the custom effect should work with this procedure as long as the custom effect itself works. Test the procedure with poison first to make sure it works. It if does then it means that the custom effect doesn't work and that's the problem.

  • @jonely69
    @jonely69 Місяць тому

    but how can i make so when i hit a mob they get the effect?

    • @askindale4943
      @askindale4943  Місяць тому

      the first procedure I show works for what you're asking for. The player can hold the weapon you specify and it will do an effect. you will need to change the provided damage source to "Player attack"
      if you want your fist to do the effect the second procedure should work. change the mob sub type to "player."

    • @askindale4943
      @askindale4943  Місяць тому

      ua-cam.com/video/2xWCgZBYB3Q/v-deo.html

    • @jonely69
      @jonely69 Місяць тому

      @@askindale4943 yea i figured it out, but thanks!👍

  • @Ldocu
    @Ldocu 6 місяців тому +1

    I wrote a whole long winded comment about how it doesn’t work haha but I realised I was just being thick. Thank you for the tutorial lol
    Btw on the second script for without the weapon where it says ‘event/target entity’ next to the subtype stuff. He doesn’t explain it in the video but instead of event/target entity you need Source entity. Which is in Minecraft components.
    Hope this helps

    • @askindale4943
      @askindale4943  6 місяців тому

      ah yes, watching it back I didn't explain that. Thanks for the comment, I made this tutorial on the fly with no preparation, so I apologise for some glaring errors in the video.

    • @aarokendgamer
      @aarokendgamer 4 місяці тому

      Thank you so muuch it worked

  • @Z3R0L0L0
    @Z3R0L0L0 Місяць тому

    i dont know which trigger to put this under

    • @askindale4943
      @askindale4943  Місяць тому +1

      this is a global event trigger so it doesn't need to go under a specific mob's trigger. The big green code block thing you choose "entity attacked" I explain it here at 0:25

    • @Z3R0L0L0
      @Z3R0L0L0 Місяць тому

      @@askindale4943 dosent that just make it so every mob afflicts poison?

    • @askindale4943
      @askindale4943  Місяць тому +1

      @@Z3R0L0L0 it would if you don't specify the mob. that is what the subtype block is for so you can specify which mob does poison or if the mob is holding a specific weapon.

  • @JOGOKASZALOT
    @JOGOKASZALOT 2 місяці тому

    do you know how to make a semi aquatic mob?

    • @askindale4943
      @askindale4943  2 місяці тому

      I don't but if I ever learn how to make one I'll make a video on it.

    • @askindale4943
      @askindale4943  2 місяці тому

      @JOGOKASZALOT i've been looking into mcreator for you and I don't know what you're going for with this aquatic life but you can make a living entity that walks on land and can breathe underwater by checking a box on the entity on the behaviour tab. "Can breathe underwater?"

    • @JOGOKASZALOT
      @JOGOKASZALOT 2 місяці тому

      @@askindale4943 it doesnt swim like a aquatic mob

    • @askindale4943
      @askindale4943  2 місяці тому

      @@JOGOKASZALOT have you added the swim randomly movement task under the "AI and Goals" section to the mob?

    • @JOGOKASZALOT
      @JOGOKASZALOT 2 місяці тому

      @@askindale4943 yes but it doesnt seem to work