Jump to content

replace all blocks within a 16 block radius


jamiemac262

Recommended Posts

Hi,

 

I'm building my first mod, a faction style mod where the player places a "faction core" and all the blocks within a 16 block radius of the core change to my mod's equivalent of that block

 

for example, Grass would become faction Grass, logs become faction Logs etc

 

I've got the core block and a few other faction blocks (grass, log and dirt)

 

the faction blocks spread like grass (but aren't restricted to dirt).

 

I'm at a stage now where I want to limit the spread to 16 blocks around the faction core but I have no idea how to do it! :/ 

 

can anyone help me out with some pointers/suggestions?

thanks,

Jamie

Link to comment
Share on other sites

3 minutes ago, diesieben07 said:

How is that at all what I said?

I can only see 2 ways to do what you said

 

every block checks for a faction core in range before spreading (seems kinda inefficient

 

or control the spread from the faction core

 

or is there another way I haven't thought of?

Link to comment
Share on other sites

1 minute ago, diesieben07 said:

If the faction core is a TileEntity then searching for it can be pretty efficient.

 

ok, I know nothing about tile entities xD

 

I was going to limit block spread and then make the faction core a tile entity for faction information.... maybe I'll do the tile entity part first

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.