Hello everybody I have a question I created thor's hammer for my mod. Is there any way that when you right click with the hammer it changes the weather to a thunder storm, if there is a way can you tell me how? I've already made it so when you right click it spawn lightning where you look at using onItemRightClick.
Look at how the command "/weather clear" works and I'm sure you can figure out how to get a storm. I can't tell you exactly where that is because my eclipse is broke at the moment and I can't view vanilla classes!
That's right. Instead of spawning a lightning, you should get the world of the hammer user. Then there's probably a method like setWeather or something which you call. If you know were the commands are defined, you can look there for it.
Mod Author and Owner of Blockhole
Owner of other discontinued or status frozen work: LimpCraft2, LimpCore, InventoryCalculator, VillageTech, Bitto'Color.