[mod] Nodebox Mob API [nmobs]

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

[mod] Nodebox Mob API [nmobs]

by duane » Wed Feb 01, 2017 03:15

This is a very primitive mob API for use with nodebox mobs only. 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 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 only a handful of mobs at the moment, mostly copied from Cute Cubic Mobs (so cute!).

"What?!", I hear you cry. "Another f***ing mob API?! We need another mob API like a hole in the head!" Relax, and take your medication, Phil. This is more of an experiment than a serious API. It is not ready for anyone (except me) to use in actual play. Consider it a chance to observe all the things that you shouldn't do in a real mod.

"But... it doesn't have [feature]...", you say? It doesn't, and it probably won't, and if it eventually does, it won't be implemented the way you want... and will be buggy. Check out Mobs Redo, which has [feature] already.

"Nodeboxes!", you sneer. "Nodeboxes are a**. I wouldn't stink up my professional server with a nodebox mob. They don't even animate. You suck!" Hey, my sexual proclivities are none of your beeswax, Charlie. Anyway, Blender has always bamboozled me, so I love the idea of making all of my mobs nodeboxes (which I'm reasonably good at). Again, you're looking for Mobs Redo.


The source is available on github.

Code: LGPL2

Mod dependencies: default

Download: https://github.com/duane-r/nmobs/archive/master.zip
Last edited by duane on Thu Feb 02, 2017 06:01, edited 1 time in total.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Wed Feb 01, 2017 03:16

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
Last edited by duane on Thu Feb 02, 2017 06:04, edited 1 time in total.
 

User avatar
TumeniNodes
Member
 
Posts: 1335
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes

Re: [mod] Nodebox Mob API [nmobs]

by TumeniNodes » Wed Feb 01, 2017 03:40

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
Flick?... Flick who?
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Wed Feb 01, 2017 03:48

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

Image
 

User avatar
TumeniNodes
Member
 
Posts: 1335
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes

Re: [mod] Nodebox Mob API [nmobs]

by TumeniNodes » Wed Feb 01, 2017 04:05

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
Flick?... Flick who?
 

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

Re: [mod] Nodebox Mob API [nmobs]

by Napiophelios » Wed Feb 01, 2017 04:11

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: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Thu Feb 02, 2017 05:55

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 3983 times
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Thu Feb 02, 2017 15:01

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 3983 times
nmobs-02.jpg
nmobs-02.jpg (267.63 KiB) Viewed 3983 times
 

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

Re: [mod] Nodebox Mob API [nmobs]

by Napiophelios » Thu Feb 02, 2017 15:23

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 3983 times
 

User avatar
TumeniNodes
Member
 
Posts: 1335
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes

Re: [mod] Nodebox Mob API [nmobs]

by TumeniNodes » Thu Feb 02, 2017 16:41

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
Flick?... Flick who?
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Fri Feb 03, 2017 14:56

Something for the sandy spots.

Image
Attachments
nmobs-04.jpg
nmobs-04.jpg (255.84 KiB) Viewed 3983 times
 

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

Re: [mod] Nodebox Mob API [nmobs]

by texmex » Fri Feb 03, 2017 16:21

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.
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Sat Feb 04, 2017 00:23

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.
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Sat Feb 04, 2017 14:45

Dem bones, dem bones...

Still working on this.

Image
Attachments
nmobs-05.jpg
nmobs-05.jpg (290.47 KiB) Viewed 3983 times
 

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

Re: [mod] Nodebox Mob API [nmobs]

by burli » Sat Feb 04, 2017 14:57

lol, makes me lough, not fear ;-)

Great job
 

User avatar
the_raven_262
Member
 
Posts: 68
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: the_raven_262 Raven262 Corvus262 corvus
In-game: the_raven_262 Raven262 Nevermore

Re: [mod] Nodebox Mob API [nmobs]

by the_raven_262 » Sat Feb 04, 2017 20:11

I actually like this idea more than the original model based mobs, i think these fit into minetest perfectly :D
My favourite quote is NOOT NOOT! (By comrade Pingu)
Which roughly translates to "The revolution will be swift and without mercy!"
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Tue Feb 07, 2017 04:26

The Goblin Garden

Image
Attachments
nmobs-06.jpg
nmobs-06.jpg (320.2 KiB) Viewed 3983 times
 

User avatar
ErrorNull
Member
 
Posts: 94
Joined: Thu Mar 03, 2016 00:43

Re: [mod] Nodebox Mob API [nmobs]

by ErrorNull » Tue Feb 07, 2017 14:24

very cool! watching this closely...
 

User avatar
the_raven_262
Member
 
Posts: 68
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: the_raven_262 Raven262 Corvus262 corvus
In-game: the_raven_262 Raven262 Nevermore

Re: [mod] Nodebox Mob API [nmobs]

by the_raven_262 » Thu Feb 16, 2017 22:47

Got attacked by a little chocolate harpsichord!
Image
Might be friendly oO
My favourite quote is NOOT NOOT! (By comrade Pingu)
Which roughly translates to "The revolution will be swift and without mercy!"
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Nodebox Mob API [nmobs]

by azekill_DIABLO » Fri Feb 17, 2017 11:27

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?!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Sat Feb 18, 2017 00:11

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


That would definitely scare me.
 

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 » Sat Feb 18, 2017 02:22

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

User avatar
duane
Member
 
Posts: 776
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r

Re: [mod] Nodebox Mob API [nmobs]

by duane » Sat Feb 18, 2017 06:58

Image
Attachments
nmobs-07.jpg
nmobs-07.jpg (151.34 KiB) Viewed 3983 times
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: [mod] Nodebox Mob API [nmobs]

by ExeterDad » Sat Feb 18, 2017 07:08

duane wrote:Image

I instantly got a particular "Bangles" song stuck in my head.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

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

Re: [mod] Nodebox Mob API [nmobs]

by texmex » Sat Feb 18, 2017 09:39

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.
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] Nodebox Mob API [nmobs]

by azekill_DIABLO » Sat Feb 18, 2017 11:49

would they only move during the jump? or they would move and jump?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

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

Re: [mod] Nodebox Mob API [nmobs]

by burli » Sat Feb 18, 2017 16:09

duane wrote:Dem bones, dem bones...

Still working on this.

Image


@duane: found this. Maybe an inspiration

viewtopic.php?p=83407#p83407
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron