Bows immune

User avatar
Steamed_Punk
Member
 
Posts: 55
Joined: Sat Aug 10, 2019 13:31

Bows immune

by Steamed_Punk » Sat Sep 07, 2019 14:37

I am trying to make a buffalo mob that can only be hunted and killed by a bow by doing this.

Code: Select all
immune_to = {
      {"all", 0},
      {"bows:bow", 10},
   },

It didn't work so i tried this:
Code: Select all
   immune_to = {
      {"all"},
      {"bows:bow", 100},
   },

That didn't work either

So i went back to the example in the mobs_redo.api ' default sword' and it worked.
I don't think that 'ALL' works with the list. It seems to outright override everything.

Is that correct and all i need to do and add to my mod to make the buffalo hunt-able by bow from the bows mod?
I also placed bows it in the depends.lua

Thanks in advance for any pointers

regards
The sky is not the limit - It's my playground
 

Skamiz Kazzarch
Member
 
Posts: 70
Joined: Fri Mar 09, 2018 20:34
Location: la lojbaugag.
GitHub: Skamiz
In-game: Skamiz

Re: Bows immune

by Skamiz Kazzarch » Wed Sep 11, 2019 08:50

As a disclaimer I have zero experience with mobs_redo or even entities in minetest in general, but...
What are the odds that: {"bows:bow", 10} means that the damage is dealt by the bow? I mean, have you literaly walked up to the buffalo and hit it with the bow item?
I am guessing that the arrow itself registers the hit differently than if you hit the mob with something you hold in your hand.
Hope that helps.
 

User avatar
TenPlus1
Member
 
Posts: 2588
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: Bows immune

by TenPlus1 » Wed Sep 11, 2019 18:16

Try:

Code: Select all
immune_to = {
    {"bows:bow_wood", 100},
    {"all"},
},
 


Return to Modding Discussion



Who is online

Users browsing this forum: rubenwardy and 2 guests