[mod] Nodebox Mob API [nmobs]
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
[mod] Nodebox Mob API [nmobs]
This is a basic mob API for use with nodebox mobs, with some support for mesh-based mobs. I started from scratch (as much as I can, given that I've already seen most of the other APIs).
Mobs are defined with a nodebox table (or mesh and textures) and a name as the only requirements. You can add a set of nodes that they're interested in and will travel to. This is where they spawn, by default. You can also specify hit dice and armor class, among other things. (AD&D 1st since 1982! Woot!)
The mobs will attack players if attack_player is set. They will always fight back when attacked if they have double-digit hit points, otherwise they panic and run.
There are two score or so of mobs at the moment, mostly of my own creation. Some were copied from Cute Cubic Mobs (so cute!), which gave me the idea for the whole project. I have no plans to duplicate all of the features of the more advanced APIs. This mod is mainly for my own use.
To get the full effect, you need to also download and install my status and bad_terrain mods, which add traps and poison, among other things.
The source is available on github.
Code: LGPL2
Mod dependencies: default
Download: https://github.com/duane-r/nmobs/archive/master.zip
Mobs are defined with a nodebox table (or mesh and textures) and a name as the only requirements. You can add a set of nodes that they're interested in and will travel to. This is where they spawn, by default. You can also specify hit dice and armor class, among other things. (AD&D 1st since 1982! Woot!)
The mobs will attack players if attack_player is set. They will always fight back when attacked if they have double-digit hit points, otherwise they panic and run.
There are two score or so of mobs at the moment, mostly of my own creation. Some were copied from Cute Cubic Mobs (so cute!), which gave me the idea for the whole project. I have no plans to duplicate all of the features of the more advanced APIs. This mod is mainly for my own use.
To get the full effect, you need to also download and install my status and bad_terrain mods, which add traps and poison, among other things.
The source is available on github.
Code: LGPL2
Mod dependencies: default
Download: https://github.com/duane-r/nmobs/archive/master.zip
- Attachments
-
- nmobs.jpg (928.13 KiB) Viewed 2019 times
Last edited by duane on Sun Nov 19, 2017 08:25, edited 12 times in total.
Believe in people and you don't need to believe anything else.
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
Problems:
- mobs may be spawning in solid earth (?)
- mobs may be submarining (possibly nothing I can do about this)
- mobs are not removed when out of player range
- taming doesn't use the tames table yet
- mobs don't respawn with more than 2 hp
- mobs aren't affected by fire, lava, etc
- mobs can see/attack through walls
- mobs may be spawning in solid earth (?)
- mobs may be submarining (possibly nothing I can do about this)
- mobs are not removed when out of player range
- taming doesn't use the tames table yet
- mobs don't respawn with more than 2 hp
- mobs aren't affected by fire, lava, etc
- mobs can see/attack through walls
Last edited by duane on Sat Jun 01, 2019 06:16, edited 3 times in total.
Believe in people and you don't need to believe anything else.
- TumeniNodes
- Member
- Posts: 2941
- Joined: Fri Feb 26, 2016 19:49
- GitHub: TumeniNodes
- IRC: tumeninodes
- In-game: TumeniNodes
- Location: in the dark recesses of the mind
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
Pssst..., hey....duane wrote:Problems: Oh yes! Lots of them!
Wanna buy a duck?
Problems can be lots of fun though.... sometimes. Not all the time though..., that's why they call it "some"times... and not "allthe"times......
Yeh.. soooooooooo when will you add ducks? They should be ducks with guns... makes gameplay a little more challenging... and wierd
Hit a duck and he pulls a gun on you.... what's more awesome than that?! :D
edit> or ninja ducks.... those are cool too
A Wonderful World
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
Nope. Instead, I'm adding Disco Ducks. They play an annoying one-hit wonder in an endless loop every time you log in.
Believe in people and you don't need to believe anything else.
- TumeniNodes
- Member
- Posts: 2941
- Joined: Fri Feb 26, 2016 19:49
- GitHub: TumeniNodes
- IRC: tumeninodes
- In-game: TumeniNodes
- Location: in the dark recesses of the mind
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
Disco..., disco duck... (that was my jam)duane wrote:Nope. Instead, I'm adding Disco Ducks. They play an annoying one-hit wonder in an endless loop every time you log in.
yet another edit> The easiest mob to create would be an air mob which attacks randomly, and just enough to annoy you. Or a leaf mob which flings sharp leaves at you
A Wonderful World
- Napiophelios
- Member
- Posts: 1035
- Joined: Mon Jul 07, 2014 01:14
- GitHub: Napiophelios
- IRC: Nappi
- In-game: Nappi
Re: [mod] Nodebox Mob API [nmobs]
Well I use mobs_redo for my survival worlds, but this is what I want for creative.
Just cute animals grazing and milling about.
I hope you can work in animal sounds.
I met Gary Gygax when I was a kid,
he signed my copy Unearthed Arcana (1st edition).
Just cute animals grazing and milling about.
I hope you can work in animal sounds.
I met Gary Gygax when I was a kid,
he signed my copy Unearthed Arcana (1st edition).
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
I added sound, an animate boulder, and some basic documentation.
You can now tame some mobs by right-clicking them. Once tame, they will follow you. When you right-click them again, they will stay within about five meters of where you left them. This is as close as I'm going to get to dealing with fences. You can put one up for looks, but the mob won't leave the area regardless.
You can now tame some mobs by right-clicking them. Once tame, they will follow you. When you right-click them again, they will stay within about five meters of where you left them. This is as close as I'm going to get to dealing with fences. You can put one up for looks, but the mob won't leave the area regardless.
- Attachments
-
- nmobs-01.jpg (321.61 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
Now I'm adding goblins. I'm going for a vaguely toad-like look.
- Attachments
-
- nmobs-03.jpg (337.25 KiB) Viewed 2019 times
-
- nmobs-02.jpg (267.63 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.
- Napiophelios
- Member
- Posts: 1035
- Joined: Mon Jul 07, 2014 01:14
- GitHub: Napiophelios
- IRC: Nappi
- In-game: Nappi
Re: [mod] Nodebox Mob API [nmobs]
PEPE!!!
I made some changes to make the pig more..pig like.
I made some changes to make the pig more..pig like.
- TumeniNodes
- Member
- Posts: 2941
- Joined: Fri Feb 26, 2016 19:49
- GitHub: TumeniNodes
- IRC: tumeninodes
- In-game: TumeniNodes
- Location: in the dark recesses of the mind
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
I'm looking at this pic and something catches my eye from the corner....Napiophelios wrote:PEPE!!!
I made some changes to make the pig more..pig like.
Innocent, harmless looking tulips..... and I'm thinking.... (hmmmm, tulip mobs?)
They settle near tulips and you won't notice them... until they attack you
A Wonderful World
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
Something for the sandy spots.
- Attachments
-
- nmobs-04.jpg (255.84 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.
- texmex
- Member
- Posts: 1753
- Joined: Mon Jul 11, 2016 21:08
- GitHub: tacotexmex
- In-game: tacotexmex
Re: [mod] Nodebox Mob API [nmobs]
Yaaas! Out of a lot of mob designs, this actually looks like it's made for Minetest.duane wrote:Something for the sandy spots.
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
It does sort of have that old-school Lego feel.texmex wrote:Yaaas! Out of a lot of mob designs, this actually looks like it's made for Minetest.
Believe in people and you don't need to believe anything else.
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
Dem bones, dem bones...
Still working on this.
Still working on this.
- Attachments
-
- nmobs-05.jpg (290.47 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.
- the_raven_262
- Member
- Posts: 343
- Joined: Mon Sep 22, 2014 09:30
- GitHub: theraven262
- IRC: [Discord unfortunately] corvus262
Re: [mod] Nodebox Mob API [nmobs]
I actually like this idea more than the original model based mobs, i think these fit into minetest perfectly :D
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
The Goblin Garden
- Attachments
-
- nmobs-06.jpg (320.2 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.
- ErrorNull
- Member
- Posts: 271
- Joined: Thu Mar 03, 2016 00:43
- GitHub: ErrorNull0
Re: [mod] Nodebox Mob API [nmobs]
very cool! watching this closely...
- the_raven_262
- Member
- Posts: 343
- Joined: Mon Sep 22, 2014 09:30
- GitHub: theraven262
- IRC: [Discord unfortunately] corvus262
Re: [mod] Nodebox Mob API [nmobs]
Got attacked by a little chocolate harpsichord!
Might be friendly oO
Might be friendly oO
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
for solid earth spawn : add a wider air checkduane wrote:Problems:
- mobs may be spawning in solid earth (?)
- mobs may be submarining (possibly nothing I can do about this)
- mobs are not removed when out of player range
- taming doesn't use the tames table yet
submobing : make them float with node check
out of range? add a check that delete them after idk 200 nodes!
taming? taming? TAMING?!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
That would definitely scare me.the_raven_262 wrote:Got attacked by a little chocolate harpsichord!
Might be friendly oO
Believe in people and you don't need to believe anything else.
- TheInformer
- Member
- Posts: 23
- Joined: Wed Feb 08, 2017 21:29
- GitHub: Repugnus
- IRC: TheInformer
- In-game: TheInformer
Re: [mod] Nodebox Mob API [nmobs]
I have to agree this is a very good Mob Mod and it fits minetest perfectly
Hi
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [mod] Nodebox Mob API [nmobs]
- Attachments
-
- nmobs-07.jpg (151.34 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.
- ExeterDad
- Member
- Posts: 1717
- Joined: Sun Jun 01, 2014 20:00
- In-game: ExeterDad
- Location: New Hampshire U.S.A
Re: [mod] Nodebox Mob API [nmobs]
I instantly got a particular "Bangles" song stuck in my head.duane wrote:
HOMETOWN -Our little server. Keep the HOMETOWN chatter @ http://hometownserver.com - Our server map: http://media.hometownserver.com
- texmex
- Member
- Posts: 1753
- Joined: Mon Jul 11, 2016 21:08
- GitHub: tacotexmex
- In-game: tacotexmex
Re: [mod] Nodebox Mob API [nmobs]
Perhaps the mobs can do very small hops while moving to make up for them not moving their legs? Like chess pieces during an earth quake.
Who is online
Users browsing this forum: No registered users and 16 guests