[Mod] NSSBombs [throwitems API]

npx
Member
 
Posts: 165
Joined: Thu Apr 09, 2015 21:17
In-game: npx

[Mod] NSSBombs [throwitems API]

by npx » Sat Jan 21, 2017 22:30

I've initially written this mod as part of nssm, but then I thought it could be useful for everybody even the one who don't use nssm and so I extracted it and rewritten it as an API mod.
It allows you to define every kind of throwitems in a really simple way, it is so intended for modders, but it contains also some standard bombs already defined for the players.
For example:

Schematic bomb (spawns a small house):
Image
Teleport bomb:
Image
Fire circle bomb:
Image
Lava bomb:
Image
Wall bomb (spawns a stone wall):
Image
Simple bomb:
Image

Github: https://github.com/NPXcoot/nssbombs
Direct download: https://github.com/NPXcoot/nssbombs/archive/master.zip

Guide: https://github.com/NPXcoot/nssbombs/blo ... manual.txt

License:
- code: GPLv3
- media (textures): CC BY-SA 4.0
 

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

Re: [Mod] NSSBombs [throwitems API]

by duane » Sun Jan 22, 2017 01:42

Very nice, and documentation too. I was just thinking about something like this.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] NSSBombs [throwitems API]

by Krock » Sun Jan 22, 2017 09:26

Well done! You've got a simple but powerful API there - should be quite easy to add further bombs, such as dirt bombs, assassin bombs or a lion spawner (if I had a lion mob..).
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

npx
Member
 
Posts: 165
Joined: Thu Apr 09, 2015 21:17
In-game: npx

Re: [Mod] NSSBombs [throwitems API]

by npx » Sun Jan 22, 2017 14:17

Added "sphere_cover" type of explosion thanks to Duane!

Krock wrote:Well done! You've got a simple but powerful API there - should be quite easy to add further bombs, such as dirt bombs, assassin bombs or a lion spawner (if I had a lion mob..).

Of course! Now you only need the Lion;) Thank you for your appreciation!
 

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

Re: [Mod] NSSBombs [throwitems API]

by azekill_DIABLO » Sun Jan 22, 2017 18:38

perfect base for a bigger thing, original!
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
Andrey01
Member
 
Posts: 431
Joined: Wed Oct 19, 2016 15:18
In-game: Andrey01

Re: [Mod] NSSBombs [throwitems API]

by Andrey01 » Tue Jan 24, 2017 15:46

Nice, but some your bombs have already in NSSM, you should add these bombs there
 

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

Re: [Mod] NSSBombs [throwitems API]

by azekill_DIABLO » Tue Jan 24, 2017 16:24

i think we could have a more powerful version of fire circle, than spawns a large sphere of fire! it could be even more useful, for burning thing and maybe killing birds... idk.

then tp bomb could have a little particle or sound effect. maybe booth.

the stone wall is very cool. why not add a "we need to build a wall" version with spikes and concrete? ;)

cheers, azekill_DIABLO
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 !!!
 

npx
Member
 
Posts: 165
Joined: Thu Apr 09, 2015 21:17
In-game: npx

Re: [Mod] NSSBombs [throwitems API]

by npx » Tue Jan 24, 2017 18:19

This is an API to add bombs so you can use it to easily create every bomb you can think about.
For example to make a bomb that spawns a sphere of fire you only need to change a parameter in its definition:
from shape = "circle" to shape = "sphere".

Besides that there are more bombs already defined than the ones I included in the preview.

Andrey01 wrote:Nice, but some your bombs have already in NSSM, you should add these bombs there


The next version of nssm will include all of these.
 

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

Re: [Mod] NSSBombs [throwitems API]

by azekill_DIABLO » Wed Jan 25, 2017 09:28

Thank you npx i will look into this! can i use your code for mila ranged entities?
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 !!!
 

npx
Member
 
Posts: 165
Joined: Thu Apr 09, 2015 21:17
In-game: npx

Re: [Mod] NSSBombs [throwitems API]

by npx » Wed Jan 25, 2017 14:46

Of course!
 

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

Re: [Mod] NSSBombs [throwitems API]

by azekill_DIABLO » Wed Jan 25, 2017 14:49

npx wrote:Of course!

Nice!
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 !!!
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron