Posted February 24, 201411 yr 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.
February 24, 201411 yr Try testing it yourself. It could work by just World.setBlockToAir(x,y,z), but I'd need to try it -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
February 24, 201411 yr Author 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...
February 24, 201411 yr 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. -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
February 24, 201411 yr World#setBlock(x, y, z, 0, 0, 2) ? 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.
February 24, 201411 yr 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.
February 24, 201411 yr Author This worked for me: world.setBlock(origX, origY, origZ, Blocks.air, 0, 3)
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.