Posted June 9, 201312 yr Hello, I am just wondering: How can I call this function to get biome on x,y when I rightclick item, or anything else, for example for a tick inside item code? Let's say (I just came up with this, this is not my target) i want to make item that will update it's texture depending what biome you are standing in. I tried a lot of stuff and cannot get this working (not working, or crashing). How can I get this for ex. onItemRightClick? 1.7.10 is no longer supported by forge, you are on your own.
June 9, 201312 yr In onItemRightClick() you are passed an EntityPlayer. All you need is player.worldObj.getBiomeGenForCoords(x,z). BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
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.