Posted March 20, 201510 yr Hello everyone, I am triing to check if a specific block is a Mushroom-Block The problem is.. I cant find the mushroomblock class. I am just using for the class I can use for if (block instanceof BlockMushroom)
March 20, 201510 yr Blocks.red_mushroom; ? Blocks.brown_mushroom; ? It's amazing what you can find by using ctrl-f inside Block.java blockRegistry.addObject(39, "brown_mushroom", (new BlockMushroom()).setHardness(0.0F).setStepSound(soundTypeGrass).setLightLevel(0.125F).setBlockName("mushroom").setBlockTextureName("mushroom_brown")); blockRegistry.addObject(40, "red_mushroom", (new BlockMushroom()).setHardness(0.0F).setStepSound(soundTypeGrass).setBlockName("mushroom").setBlockTextureName("mushroom_red")); 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.
March 20, 201510 yr Author I just realized. My eclipse was broken. It was showing most of the things, but for some reasons NOT blockMushroom.
March 20, 201510 yr Author Well. It seems to not be working. I have this inside my BreakEvent method System.out.println(event.state.getBlock() instanceof BlockMushroom); and its giving me false when I harvest a mushroom block..
March 20, 201510 yr Question: [/img] or [/img] ? Because as Diesieben says, Huge Mushrooms are BlockHugeMushroom. 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.
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.