Need help making an Infection mod.

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

Need help making an Infection mod.

by Dan Duncombe » Tue Jul 16, 2013 12:40

Please can I have full code on how to do this.

Let's say, I have a bunch of NodeA floating in middair. Every five seconds each NodeA should have a 0.5 chance of changing air node directly beneath it into another NodeA. Every five seconds each NodeA should have a 0.25 chance of turning any air node directly beside it into NodeA.
Now, imagine NodeA has spread to the ground. Every five seconds each NodeA should have a 0.5 chance of changing any non-air node touching it into NodeB.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

tinoesroho
Member
 
Posts: 570
Joined: Fri Feb 17, 2012 21:55

by tinoesroho » Tue Jul 16, 2013 14:58

An ABM
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Tue Jul 16, 2013 15:25

tinoesroho wrote:An ABM

ABM
 

User avatar
LionsDen
Member
 
Posts: 525
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Tue Jul 16, 2013 16:33

If your looking for similar code, try looking in the vines mod. When I was using it, dirt with nothing underneath would sprout vines or something going down until they hit another node.
Last edited by LionsDen on Tue Jul 16, 2013 16:33, edited 1 time in total.
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Tue Jul 16, 2013 16:38

I asked for the full code please. I have no idea how to use an abm to do it
webdesigner97 wrote:
tinoesroho wrote:An ABM

ABM
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

tinoesroho
Member
 
Posts: 570
Joined: Fri Feb 17, 2012 21:55

by tinoesroho » Tue Jul 16, 2013 18:01

I haven't coded an ABM in ages- but if you want to see a very basic "add entity/node" spawner, check out my Vombie Spawner. Or, heck, check out the moonrealm mod, which has "atmosphere" and "leaking".
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Tue Jul 16, 2013 21:03

I'll have a crack tomorrow.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Tue Jul 16, 2013 21:56

Thankyou loads!
Jordach wrote:I'll have a crack tomorrow.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 11 guests

cron