1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

add "all" to immune_to table, optimized floating code

This commit is contained in:
TenPlus1
2018-05-30 10:55:39 +01:00
parent 82c8386eb3
commit 12a3c8975f
5 changed files with 43 additions and 10 deletions

View File

@ -126,6 +126,7 @@ functions needed for the mob to work properly which contains the following:
{"default:sword_wood", 0} -- causes no damage.
{"default:gold_lump", -10} -- heals by 10 health points.
{"default:coal_block", 20} -- 20 damage when hit on head with coal blocks.
{"all"} -- stops all weapons causing damage apart from those on list.
'makes_footstep_sound' when true you can hear mobs walking.
'sounds' this is a table with sounds of the mob