Fearzu Posted July 10, 2015 Share Posted July 10, 2015 All, I am currently working on a mod that allows placed blocks called Totems to radiate a vanilla status effect for a set duration to nearby players. E.g. Craft block, place like any other, start receiving status effect such as Regeneration. This would be similar to a Shamans Totems in WoW. I am not looking for a handout, but if anyone can point me in the right direction for applying a status effect to placed blocks in a certain radius that would be excellent. I am new to modding and I am not sure where to look for code examples for things like this. Thanks! Quote Link to comment Share on other sites More sharing options...
coolAlias Posted July 10, 2015 Share Posted July 10, 2015 Take a look at beacons - that's exactly what they do. TileEntityBeacon#updateEntity is where it all starts. Quote http://i.imgur.com/NdrFdld.png[/img] Link to comment Share on other sites More sharing options...
Fearzu Posted July 10, 2015 Author Share Posted July 10, 2015 Thanks Cool, that's what I was suspecting - I'm just not sure where to see the code for Beacons - is that a package in Forge that I can view in my IDE (Eclipse)? Edit: just saw the bit about tile. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.