sockpuppetcow
-
Posts
3 -
Joined
-
Last visited
Posts posted by sockpuppetcow
-
-
Hi, I'm rather new to Forge modding and my current project requires me to detect a specific class of block within a certain radius of a player and return boolean. There has got to be a better way than making an individual line for each block in that radius. Anyone know it?
-
Hi, I am COMPLETELY new to Forge modding, I've used bukkit before but Forge is still different. I have no idea what I'm doing. All of the tutorials I've found give code that does not work, for example: "import cpw.mods.fml.common.Mod;". I use that, and it gives me an error, this is of course because that class is not in the "common" package. If anyone knows of a tutorial that WILL work, could you direct me to this?
Detecting specific blocks within a specific radius of a point?
in Modder Support
Posted
Okay let's see if I can answer everyone at once here...
I need the function to return a boolean if there is any amount of the block at all, so just finding one will work. I think doing a cube setup would end up causing false-positives in some cases because that would cover a bigger area than the actual 16 or so block radius that I need to search in (so I'm looking in a sphere here). Given that, I guess I'll go with jabelar and TGG's advice and see where that gets me. I'll come back and let you know what happens.