[mod] Nodebox Mob API [nmobs]

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

[mod] Nodebox Mob API [nmobs]

by duane » Post

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).

Image

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
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.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

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
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.

User avatar
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]

by TumeniNodes » Post

duane wrote:Problems: Oh yes! Lots of them!
Pssst..., hey....
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

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

Nope. Instead, I'm adding Disco Ducks. They play an annoying one-hit wonder in an endless loop every time you log in.

Image
Believe in people and you don't need to believe anything else.

User avatar
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]

by TumeniNodes » Post

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.

Image
Disco..., disco duck... (that was my jam)

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

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [mod] Nodebox Mob API [nmobs]

by Napiophelios » Post

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).

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

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.

Image
Attachments
nmobs-01.jpg
nmobs-01.jpg (321.61 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

Now I'm adding goblins. I'm going for a vaguely toad-like look.

Image

Image
Attachments
nmobs-03.jpg
nmobs-03.jpg (337.25 KiB) Viewed 2019 times
nmobs-02.jpg
nmobs-02.jpg (267.63 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [mod] Nodebox Mob API [nmobs]

by Napiophelios » Post

PEPE!!!

I made some changes to make the pig more..pig like.

Image
screenshot_20170202_094218.png
screenshot_20170202_094218.png (87.85 KiB) Viewed 2019 times

User avatar
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]

by TumeniNodes » Post

Napiophelios wrote:PEPE!!!

I made some changes to make the pig more..pig like.

Image
screenshot_20170202_094218.png
I'm looking at this pic and something catches my eye from the corner....
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

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

Something for the sandy spots.

Image
Attachments
nmobs-04.jpg
nmobs-04.jpg (255.84 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [mod] Nodebox Mob API [nmobs]

by texmex » Post

duane wrote:Something for the sandy spots.

Image
Yaaas! Out of a lot of mob designs, this actually looks like it's made for Minetest.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

texmex wrote:Yaaas! Out of a lot of mob designs, this actually looks like it's made for Minetest.
It does sort of have that old-school Lego feel.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

Dem bones, dem bones...

Still working on this.

Image
Attachments
nmobs-05.jpg
nmobs-05.jpg (290.47 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: [mod] Nodebox Mob API [nmobs]

by burli » Post

lol, makes me lough, not fear ;-)

Great job

User avatar
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]

by the_raven_262 » Post

I actually like this idea more than the original model based mobs, i think these fit into minetest perfectly :D

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

The Goblin Garden

Image
Attachments
nmobs-06.jpg
nmobs-06.jpg (320.2 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.

User avatar
ErrorNull
Member
Posts: 271
Joined: Thu Mar 03, 2016 00:43
GitHub: ErrorNull0

Re: [mod] Nodebox Mob API [nmobs]

by ErrorNull » Post

very cool! watching this closely...

User avatar
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]

by the_raven_262 » Post

Got attacked by a little chocolate harpsichord!
Image
Might be friendly oO

User avatar
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]

by azekill_DIABLO » Post

duane 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
for solid earth spawn : add a wider air check
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!

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

the_raven_262 wrote:Got attacked by a little chocolate harpsichord!
Image
Might be friendly oO
That would definitely scare me.
Believe in people and you don't need to believe anything else.

User avatar
TheInformer
Member
Posts: 23
Joined: Wed Feb 08, 2017 21:29
GitHub: Repugnus
IRC: TheInformer
In-game: TheInformer

Re: [mod] Nodebox Mob API [nmobs]

by TheInformer » Post

I have to agree this is a very good Mob Mod and it fits minetest perfectly
Hi

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [mod] Nodebox Mob API [nmobs]

by duane » Post

Image
Attachments
nmobs-07.jpg
nmobs-07.jpg (151.34 KiB) Viewed 2019 times
Believe in people and you don't need to believe anything else.

User avatar
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]

by ExeterDad » Post

duane wrote:Image
I instantly got a particular "Bangles" song stuck in my head.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [mod] Nodebox Mob API [nmobs]

by texmex » Post

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests