skyress3000 Posted February 24, 2014 Share Posted February 24, 2014 Is there a way to set a block to air (or another block) without that block "noticing"? To clarify, I want to set a dispenser to air, but I don't want its inventory to drop. Quote Link to comment Share on other sites More sharing options...
Mitchellbrine Posted February 24, 2014 Share Posted February 24, 2014 Try testing it yourself. It could work by just World.setBlockToAir(x,y,z), but I'd need to try it Quote -Mitchellbrine Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible. It may be freaking fucking hard though, but still possible If you create a topic on Modder Support, live by this motto: I don't want your charity, I want your information Link to comment Share on other sites More sharing options...
skyress3000 Posted February 24, 2014 Author Share Posted February 24, 2014 nope, tried that and world.setBlockAt(x,y,z,Blocks.air) both of them make the dispenser drop items. I'll see if I can look into the /setblock command with the replace option... Quote Link to comment Share on other sites More sharing options...
Mitchellbrine Posted February 24, 2014 Share Posted February 24, 2014 Now that I think about it, there should be some flags in World.setBlock(x,y,z) that makes it so it doesn't do that... I think. Quote -Mitchellbrine Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible. It may be freaking fucking hard though, but still possible If you create a topic on Modder Support, live by this motto: I don't want your charity, I want your information Link to comment Share on other sites More sharing options...
Draco18s Posted February 24, 2014 Share Posted February 24, 2014 World#setBlock(x, y, z, 0, 0, 2) ? Quote 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 More sharing options...
Alexiy Posted February 24, 2014 Share Posted February 24, 2014 From my experience, there is no method which doesn't notifies neighbours. You'll have to copy setBlock method and delete code which does notifications. Quote Link to comment Share on other sites More sharing options...
skyress3000 Posted February 24, 2014 Author Share Posted February 24, 2014 This worked for me: world.setBlock(origX, origY, origZ, Blocks.air, 0, 3) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.