Posted November 1, 201311 yr I think title says all I need to know. I want to create mod that will create protection from tnt, creepers in some radius, So if I'd place lots of tnt around protected area it'd create a sphere. Afaik there is only an event detecting breaking block by player in forge api, thats quite disappointing.
November 1, 201311 yr Author Thanks, but detecting it for every block would require modifying Block class, am I right?
November 1, 201311 yr Hi I don't think this is so easy. I can think of a few possibilities, none of them easy- modify the Block class modify the Explosion class intercept World.createExplosion, World.newExplosion, to substitute a customised MyExplosion class; modify the TNT and creeper entities I reckon that probably means a core mod. -TGG
November 1, 201311 yr Author Yeah, I actually went with modifying Explosion class, I guess not many core mods would be incompatible with that. Thanks alot.
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.