Jump to content

Muggles

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Muggles

  1. I've never bothered with enums because I've never really needed them, but I changed my code accordingly and it now works, so thanks for that
  2. Actually I just found out I can do event.setResult(Result.DENY), however I still don't know how to check if the event is happening. As I said in the post. event.getPhase().equals(event.type.TREE) doesn't work and the method you stated in your other post sounds similar to what I have already done
  3. I am trying to stop trees from generating, and found the DecorateBiomeEvent.Decorate event, however I cant seem to check if the event is equal to TREE, which is what is called when trees are generated. I've tried: if(event.getPhase().equals(event.type.TREE)) { System.out.println("TREE TREE TREE TREE TREE TREE TREE TREE - gone soon"); } and checking if event.type.TREE != null (which I didn't think would work but tried it anyways) but neither of them seem to work. Anyone know the correct way to check for an event? I also want to deny it so that it doesn't spawn trees, how would I do that aswell? Thanks
  4. I hate to be "that guy" asking you to explain in more detail, but could you explain that just a tad bit more please? As in, where do I use the BreakSpeed event? Thanks
  5. Using 1.8, is there a way that I can set the default players hands to have a harvestLevel of 0, so that they can't actually mine anything without the use of a tool (which of course I will have spawn with them)? I have been looking around for a while and couldn't find a way to do it, even with editing base files (which I wouldn't mind doing because I'm doing a total conversion of minecraft). Any suggestions/ideas? Thanks.
×
×
  • Create New...

Important Information

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