Mobs you can tame & advanced mob triggers and behavior

User avatar
MirceaKitsune
Member
 
Posts: 809
Joined: Sat May 21, 2011 22:31
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune

Mobs you can tame & advanced mob triggers and behavior

by MirceaKitsune » Thu Jun 28, 2012 00:09

I plan to make my own mods at some point. I haven't started doing so yet, but there's one thing I haven't seen in existing mods that I wanted to know if it's possible.

There are mods that add mobs which follow and attack the player (like zombies) as well as mods that add animals (they roam around and don't attack, even give you items when you kill them). But is it possible to make mobs that can be tamed by the player and will only attack those who threaten him? Also can mobs be scripted to turn against players, other mobs or even objects when triggered by an action?

One example is the wolves in MineCraft. Wild ones just roam around, don't attack anything except certain animals to feed themselves (like sheep). If you hit them, they turn against you and attack the player. If you feed them with a bone item instead, there is a chance they will be tamed and follow you around. Right clicking them also tells them to follow you or stay in place once tamed. Also, when a tamed wolf is near, the player attacking any mob (and possibly any other player in PvP) will cause the wolf to join in and attack it too. Wolves can also be healed by right clicking them with raw or cooked meat, restoring their health.

How much of this can be done with the current LUA API and its hooks and possibilities? If it is doable, are there any example mods already that are available to test and look at?
 

User avatar
LandMine
Member
 
Posts: 310
Joined: Tue May 01, 2012 16:44

by LandMine » Thu Jun 28, 2012 01:58

this would be so awesome
List Of My Creative Servers - http://planetminetest.com
The Walls - PvP Map - http://minetest.net/forum/viewtopic.php?id=2906
 

User avatar
MirceaKitsune
Member
 
Posts: 809
Joined: Sat May 21, 2011 22:31
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune

by MirceaKitsune » Tue Aug 07, 2012 16:29

Any news, info, or examples about this?
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Tue Aug 07, 2012 17:07

+1
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
LocaL_ALchemisT
Member
 
Posts: 56
Joined: Thu Jul 19, 2012 16:21

by LocaL_ALchemisT » Wed Aug 08, 2012 04:19

try use node metadata and abm. do use this for reference.
Built Telegate v1.0, Workers v2.0, Broadcast v0.0 & Weeping Angel v0.1
Having A Buzy Week
From 0.4.10 with love~
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 4 guests

cron