Jump to content

[SOLVED] Is it possible to check the biome when placing a block?


LutzBlox

Recommended Posts

I am making a mod that adds a few flowers, among other things, and I am trying to make a block (a flower) that can only be placed in the Taiga biome.  Are there any functions in Forge to check the biome when placing the block?  Thanks in advance!

Link to comment
Share on other sites

world.getBiomeGenForCoords(x, z)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Remember to use your IDE's autocomplete capabilities. ;)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

bu

Remember to use your IDE's autocomplete capabilities. ;)

@Just idk

if he is using n++ ?

 

...Eclipse is free...  And a compiler...

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I use Eclipse

 

Anyway, yeah.  Take advantage of code hinting.  I scroll through the list of properties and methods for various classes all the time.  It's how I know that you can't get the current (surface) sunlight level directly, but you CAN get the amount that has been subtracted from it due to dusk/night, which is close enough.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

is netbeans a good one?

 

according to wiki it's pretty similar

http://en.wikipedia.org/wiki/Comparison_of_integrated_development_environments#Java

^^there you can find links to the individual descriptions of the IDE's

 

I still would stick with Eclipse ...

running minecraft on Mac OS X - Sierra --- creating code since 1986 ... --- मेरा दिल भारतवासी है!

width=289 height=100http://www.arno-saxena.de/pictures/chococraft/banner_signature.png[/img]

Link to comment
Share on other sites

Unless you are 100% sure what you are doing eclipse is the most user-friendly. I know some people don't like eclipse for certain reasons but it is nice that most people use it because then everyone can talk over what issues they have with it to others that may have similar problems.

This is the creator of the Rareores mod! Be sure to check it out at

Link to comment
Share on other sites

Unless you are 100% sure what you are doing eclipse is the most user-friendly. I know some people don't like eclipse for certain reasons but it is nice that most people use it because then everyone can talk over what issues they have with it to others that may have similar problems.

 

Eclipse is probably by far the best IDE I've ever used.  Automatic detection of unrecognized classes?  Quick resolution of common errors?  Easy access to methods and properties of other classes through mouse-over modal windows?  GAWD DAMN.  I'm going to see if I can use it to develop for Unity here pretty soon (MonoDevelop for Windows that ships with Unity has several game-breaking bugs so I'm using Notepad++).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.