[Mod] Mobs [carbone_mobs] – fast and simple mobs

User avatar
Calinou
Moderator
 
Posts: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

[Mod] Mobs [carbone_mobs] – fast and simple mobs

by Calinou » Tue Jul 01, 2014 18:47

A fast mobs mod. Based on PilzAdam's mobs mod, packing dozens of improvements.

This mod is originating from Carbone. You don't install this mod if you're playing that particular game; it's already included and enabled by default there.

GitHub repository (includes issue tracker)

Download
Rename the directory to “carbone_mobs” after extracting the .zip file.

No dependencies on non-default mods.
License for code: WTFPL
License for media: WTFPL (some by Evergreen and Pavel_S)


This mod forces active_block_range = 1 which is the correct value needed by the spawning code. This also greatly improves server performance, by decreasing its CPU usage.

Crafting

Smelt a rat for a cooked rat, gives 3 HP. Smelt raw meat for meat, gives 6 HP.

Smelt a cooked rat for scorched stuff, which attracts nearby rats when held.

Settings

Mobs never spawn in creative mode, but can be placed using items with the same name as the mobs.

spawn_hostile_mobs: whether to spawn hostile mobs. [true]
spawn_friendly_mobs: whether to spawn friendly mobs. [true]
monster_damage_factor: 0 disables damage, values above 1 increase damage. Values between 0 and 1 do not work. [1.0]

Mob list

Hostile

Hostile mobs slowly die if exposed to sunlight. They do not spawn outside, even at night, only in caves below sea level (Y coordinate 0). All hostile mobs spawn on stone and desert stone only. Overall, the monsters aren't that easy to beat.

Dirt Monster: 20 HP, 3 damage
Fairly fast movement speed.

Stone Monster: 24 HP, 4 damage
Resistant to lava and water, is fairly slow.

Sand Monster: 12 HP, 2 damage
Moves very quickly, almost as fast as the player.

Tree Monster: 50 HP, 5 damage
Moves slowly.

Oerkki: 35 HP, 4 damage
Moves fairly quickly.

Dungeon Master: 40 HP, 8 damage using fireball (8 blocks/s movement speed, 1 fireball per 2.5 seconds)
Instantly dies in sunlight. Fireballs destroy most nearby nodes, except containers and bedrock (but do not cause fire to appear). Spawns at -50 and deeper.

Rhino: 20 HP, 2 damage using bullets (15 blocks/s movement speed, 1 bullet per 0.5 seconds)

Trooper: 20 HP, 1 damage
Looks like a player without a name tag.


Friendly

Rat: 1 HP
Can be cooked (15 seconds cook time), gives 3 HP when eaten. Left click to collect, can be placed after being collected. Also spawns on trees, jungle trees and cacti. Follows you when holding scorched stuff (which is obtained by smelting a cooked rat).

Sheep: 10 HP
Can be cooked (25 seconds cook time), gives 6 HP when eaten. Right click to shear. Follows you when holding wheat; right click with wheat to feed them, to make their wool regrow.
 

User avatar
HeroOfTheWinds
Member
 
Posts: 470
Joined: Wed Apr 23, 2014 23:16
Location: Hawaii
GitHub: HeroOfTheWinds
IRC: WindHero

Re: [Mod] Mobs [mobs]

by HeroOfTheWinds » Tue Jul 01, 2014 20:07

Neat, seems pretty close to the original Simple Mobs. However, I notice that you have some monsters drop maptools:silver_coin... shouldn't maptools be a dependency then?
Nam ex spatio, omnes res venire possunt.
Why let the ground limit you when you can reach for the sky?
Back to college now, yay for sophomore year schedules. :P
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Mobs [mobs]

by Sokomine » Tue Jul 01, 2014 22:09

And again: Another variant of sheep. I'd love to see goats!
A list of my mods can be found here.
 

trainwrecktony
Member
 
Posts: 51
Joined: Sun Jun 08, 2014 05:24
Location: NJ USA
In-game: trainwrecktony

Re: [Mod] Mobs [mobs]

by trainwrecktony » Tue Jul 01, 2014 22:53

Great work with this, this is the the mob pack to be using in my opinion. Everything is tweaked just right.
I run a modified version on my server with added animals, monsters, and code borrowed from adventuretest for knockback effect, bloodsplatter, and sounds
Server Owner trainwrecktony.serveminecraft.net:30000
Server Specs: i5-3570, 16gb, 1tb 7200rpm 64mb cache, Win 2012 r2 x64, Dev mingw x64 minetest build, redis db
Gaming: Clevo W150HNQ, i7-2820, 16gb 1866 hyperx, 256gb Samsung 840 PRO SSD, Nvidia GT 540M, Win 7 Pro x64, Dev mingw x64 minetest build
 

User avatar
BrandonReese
Member
 
Posts: 839
Joined: Wed Sep 12, 2012 00:44
Location: USA
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese

Re: [Mod] Mobs [mobs]

by BrandonReese » Wed Jul 02, 2014 02:15

Sokomine wrote:And again: Another variant of sheep. I'd love to see goats!


If somebody would make a goat model I would add it and I'm sure Calinou would too.
 

User avatar
Calinou
Moderator
 
Posts: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Mobs [mobs]

by Calinou » Wed Jul 02, 2014 09:17

Commented out references to coin, added player damage, death and falling damage sounds, which may also be used by mods.

By installing this mod, you also get sounds when players are damaged or fall since they're automatically used by the engine.
 

NyankoSensei
Member
 
Posts: 14
Joined: Fri Feb 28, 2014 11:29

Re: [Mod] Mobs [mobs]

by NyankoSensei » Thu Jul 03, 2014 05:43

trainwrecktony wrote:code borrowed from adventuretest for knockback effect


That can be a nice improvement, i like how harder are those mobs but without knockback you don't have the chance to disengage enemy, can be added sword wearing ?
 

User avatar
Achilles
Member
 
Posts: 247
Joined: Sun Dec 15, 2013 11:55
Location: Excuse Me???? -_-
In-game: Achilles

Re: [Mod] Mobs [mobs]

by Achilles » Sat Jul 05, 2014 21:44

Is there an admin command that would spawn one of the mobs? Or an egg that can only be gained by admins?
 

User avatar
Calinou
Moderator
 
Posts: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Mobs [mobs]

by Calinou » Sun Jul 06, 2014 14:40

Achilles wrote:Is there an admin command that would spawn one of the mobs? Or an egg that can only be gained by admins?


This one requires the “server” privilege: /spawnentity carbone_mobs:name – the mob is spawned directly at your position.

This one requires the “give” privilege: /giveme carbone_mobs:name – this gives you an item which lets you spawn the mob by right-clicking a block.

name can be:

Animals:
  • rat
  • sheep
  • oerkki
Monsters:
  • dirt_monster
  • sand_monster
  • stone_monster
  • tree_monster
  • dungeon_master
  • rhino
  • trooper
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: [Mod] Mobs [mobs]

by gsmanners » Mon Jul 07, 2014 16:31

Nice. I still don't care for the drops, though. I usually do a little something like this with mobs:

Code: Select all
local handle_drops = function(self)
   if self.object:get_hp() <= 0 then
      local p = self.object:getpos()
      for _,drop in ipairs(self.drops) do
         if math.random(1, drop.chance) == 1 then
            local o = minetest.add_entity(p, "__builtin:item")
            local s = ItemStack(drop.name.." "..math.random(drop.min, drop.max))
            o:get_luaentity():set_item(s:to_string())
            o:setvelocity({x=math.random(0,4)-2, y=0, z=math.random(0,4)-2})
         end
      end
      if self.bonus and math.random(1, 4) == 1 then
         local o = minetest.add_entity(p, "__builtin:item")
         local s = ItemStack(self.bonus[math.random(1, #self.bonus)])
         o:get_luaentity():set_item(s:to_string())
         o:setvelocity({x=math.random(0,4)-2, y=0, z=math.random(0,4)-2})
      end
      self.object:remove()
      return
   end
end


Then call the above right before various remove()s.
 

User avatar
Calinou
Moderator
 
Posts: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Mobs [mobs]

by Calinou » Mon Jul 07, 2014 21:02

gsmanners wrote:Nice. I still don't care for the drops, though. I usually do a little something like this with mobs:

Code: Select all
local handle_drops = function(self)
   if self.object:get_hp() <= 0 then
      local p = self.object:getpos()
      for _,drop in ipairs(self.drops) do
         if math.random(1, drop.chance) == 1 then
            local o = minetest.add_entity(p, "__builtin:item")
            local s = ItemStack(drop.name.." "..math.random(drop.min, drop.max))
            o:get_luaentity():set_item(s:to_string())
            o:setvelocity({x=math.random(0,4)-2, y=0, z=math.random(0,4)-2})
         end
      end
      if self.bonus and math.random(1, 4) == 1 then
         local o = minetest.add_entity(p, "__builtin:item")
         local s = ItemStack(self.bonus[math.random(1, #self.bonus)])
         o:get_luaentity():set_item(s:to_string())
         o:setvelocity({x=math.random(0,4)-2, y=0, z=math.random(0,4)-2})
      end
      self.object:remove()
      return
   end
end


Then call the above right before various remove()s.


Ideally, I would drop items like that only if the mob dies due to an arrow. I don't want to see dozens of meat in lakes. :)
 

User avatar
Wuzzy
Member
 
Posts: 3243
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Mobs [mobs]

by Wuzzy » Sun Oct 19, 2014 10:37

You said that you made “tons of improvements” and performance improvements. May I know which ones?
Maybe you could get in touch with the author of this mod, which is like PilzAdam’s mobs mod, but just the API. It would be great if you could help out here a little bit. :)
 

User avatar
Calinou
Moderator
 
Posts: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Mobs [carbone_mobs] – fast and simple mobs

by Calinou » Sun Nov 09, 2014 19:28

A new release, finally:

  • Mod name changed: mobs → carbone_mobs (added aliases for compatibility).
  • Health, damage and speed values tweaked for use in minetest_game.
  • Added troopers (player-looking monsters).
  • active_block_range = 1 is now enforced.
  • Uses a Git repository.
 

User avatar
Inocudom
Member
 
Posts: 3019
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Mobs [carbone_mobs] – fast and simple mobs

by Inocudom » Tue Dec 23, 2014 13:20

Cyberpangolen uploaded these sound effects recently:
https://forum.minetest.net/viewforum.php?f=9
You might find something that you like.
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

User avatar
Cryterion
Member
 
Posts: 94
Joined: Tue Jun 10, 2014 08:12
Location: Durban, South Africa
GitHub: Cryterion
IRC: Cryterion
In-game: Cryterion

Re: [Mod] Mobs [carbone_mobs] – fast and simple mobs

by Cryterion » Wed May 20, 2015 17:24

Hi. Just a suggestion to help server admins. Is to place an option to either enable or disable node damage from the fireballs sent out by the dungeon master. Simple enough for a programmer to do, but would help for the non programmers with server configuration.
No trees or animals were hurt in the production of this message. However, a large number of Electrons were temporarily inconvenienced.
 

User avatar
cHyper
Member
 
Posts: 762
Joined: Fri May 06, 2011 08:49
Location: Austria
GitHub: cHyper-0815OL
IRC: cHyper
In-game: cHyper

Re: [Mod] Mobs [carbone_mobs] – fast and simple mobs

by cHyper » Fri Oct 07, 2016 22:31

What are the dozens of improvements exactly?

Can you implement bigs and cows?
 


Return to Mod Releases



Who is online

Users browsing this forum: ludwig-a, R-One and 1 guest