Posted March 7, 20178 yr 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
March 7, 20178 yr I'm not sure I understand your question. What have you got so far, and what is/isn't working how you want it to?
March 7, 20178 yr Author 12 minutes ago, diesieben07 said: Before spreading check if the coordinates you want to spread to are more than 16 blocks away. so control the spread from the faction core? at the moment every block ticks randomly and calls a "doSpread" function
March 7, 20178 yr Author 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?
March 7, 20178 yr Author 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 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
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.