diff --git a/mods/ENTITIES/mobs_mc/README.md b/mods/ENTITIES/mobs_mc/README.md index 220b9f97b..34b784d50 100644 --- a/mods/ENTITIES/mobs_mc/README.md +++ b/mods/ENTITIES/mobs_mc/README.md @@ -1,14 +1,14 @@ MC MOBS WIP assembled by maikerumine -compatable with mobs redo api +compatable with Mobs Redo API ## LICENSING ### Code -WTFPL +MIT License -by PilzAdam +by PilzAdam and others ### Sound files - `mobs_*.ogg` @@ -22,16 +22,24 @@ by PilzAdam - CC0, by freesound.org user thefilmbakery - Source: https://freesound.org/people/thefilmbakery/sounds/137836/ - `slime_*.ogg` - - WTFPL + - MIT License ### Textures - `mobs_squid.png` - `mobs_blaze.png` - GPLv3 by 22i +- `mobs_bunny_*.png` + - MIT License, by ExeterDad - `spawn_egg_squid.png` - `spawn_egg_blaze.png` - !!! UNKNOWN LICENSE !!! Author: daufinsyd +- `spawn_egg_rabbit.png` + - MIT License, by Wuzzy + +### Models +- `mobs_bunny.b3d` + - MIT License, by ExeterDad Everything else: diff --git a/mods/ENTITIES/mobs_mc/init.lua b/mods/ENTITIES/mobs_mc/init.lua index f00d2fdda..15efd7879 100644 --- a/mods/ENTITIES/mobs_mc/init.lua +++ b/mods/ENTITIES/mobs_mc/init.lua @@ -6,6 +6,7 @@ local path = minetest.get_modpath("mobs_mc") -- Animals +dofile(path .. "/rabbit.lua") -- ExeterDad dofile(path .. "/chicken.lua") -- Mesh and animation by Pavel_S dofile(path .. "/cow.lua") -- Mesh by Morn76 Animation by Pavel_S dofile(path .. "/sheep.lua") -- Mesh and animation by Pavel_S diff --git a/mods/ENTITIES/mobs_mc/models/mobs_bunny.b3d b/mods/ENTITIES/mobs_mc/models/mobs_bunny.b3d new file mode 100644 index 000000000..ee053bd46 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/models/mobs_bunny.b3d differ diff --git a/mods/ENTITIES/mobs_mc/rabbit.lua b/mods/ENTITIES/mobs_mc/rabbit.lua new file mode 100644 index 000000000..e0735d00f --- /dev/null +++ b/mods/ENTITIES/mobs_mc/rabbit.lua @@ -0,0 +1,83 @@ + +local S = mobs.intllib + + +-- Rabbit by ExeterDad + +mobs:register_mob("mobs_mc:rabbit", { + type = "animal", + passive = true, + reach = 1, + hp_min = 3, + hp_max = 3, + armor = 100, + collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268}, + visual = "mesh", + mesh = "mobs_bunny.b3d", + drawtype = "front", + textures = { + {"mobs_bunny_black.png"}, + {"mobs_bunny_brown.png"}, + {"mobs_bunny_salt.png"}, + {"mobs_bunny_white.png"}, + {"mobs_bunny_gold.png"}, + }, + sounds = {}, + makes_footstep_sound = false, + walk_velocity = 1, + run_velocity = 2, + runaway = true, + jump = true, + drops = { + {name = "mcl_mobitems:rabbit", chance = 1, min = 0, max = 1}, + {name = "mcl_mobitems:rabbit_hide", chance = 1, min = 0, max = 1}, + {name = "mcl_mobitems:rabbit_foot", chance = 10, min = 1, max = 1}, + }, + water_damage = 1, + lava_damage = 4, + light_damage = 0, + fear_height = 2, + animation = { + speed_normal = 15, + stand_start = 1, + stand_end = 15, + walk_start = 16, + walk_end = 24, + punch_start = 16, + punch_end = 24, + }, + follow = {"mcl_farming:carrot_item", "mcl_farming:carrot_item_gold", "mcl_flowers:dandelion"}, + view_range = 8, + replace_rate = 10, + replace_what = {"mcl_farming:carrot_3", "mcl_farming:carrot_2", "mcl_farming:carrot_1"}, + replace_with = "air", + on_rightclick = function(self, clicker) + + -- feed or tame + if mobs:feed_tame(self, clicker, 4, true, true) then + return + end + + end, +}) + + +local spawn_on = { + "mcl_core::dirt_with_grass", "mcl_core:sand", "mcl_core:snow", "mcl_core:snowblock", "mcl_core:podzol", "mcl_core:ice" +} + +mobs:spawn({ + name = "mobs_mc:rabbit", + nodes = spawn_on, + min_light = 10, + chance = 15000, + min_height = 0, + day_toggle = true, +}) + + +mobs:register_egg("mobs_mc:rabbit", "Spawn Rabbit", "spawn_egg_rabbit.png", 0) + + +mobs:alias_mob("mobs:bunny", "mobs_mc:bunny") -- compatibility + diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_bunny_black.png b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_black.png new file mode 100644 index 000000000..3dfd3d6f4 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_black.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_bunny_brown.png b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_brown.png new file mode 100644 index 000000000..547ddd345 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_brown.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_bunny_evil.png b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_evil.png new file mode 100644 index 000000000..19a0fae1e Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_evil.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_bunny_gold.png b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_gold.png new file mode 100644 index 000000000..a4c15d5c9 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_gold.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_bunny_grey.png b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_grey.png new file mode 100644 index 000000000..4a7ad1952 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_grey.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_bunny_salt.png b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_salt.png new file mode 100644 index 000000000..25c3df9d1 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_salt.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_bunny_white.png b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_white.png new file mode 100644 index 000000000..f66ff3daa Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_bunny_white.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/spawn_egg_rabbit.png b/mods/ENTITIES/mobs_mc/textures/spawn_egg_rabbit.png new file mode 100644 index 000000000..d46ee0263 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/spawn_egg_rabbit.png differ