Jump to content

Sethq

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Sethq

  1. Yea i realized that when i tried to fill up space with water after the sponge is destroyed. Right now i'm calling objects from core mod class it fixed few glitches for me. thanks for advice !
  2. world.markBlockForUpdate() solved my problem. I dont know why but i can replace water with stone without problem but when i want to use my own blocks i need to mark them for udpate. diesieben07 I know its looks ugly. I'lll try to clear code after i finish testing it. And also i dont know how it was in 1.6. I will try to find some tutorials later and check it out. Thanks for advice.
  3. i did but it still doesnt work
  4. I added @SideOnly before calling method on placedOn. Its wierd because when i'm trying to replace water blocks with stone it works fine but when i change it to mine custom blocks it works but i need to relaunch game. I have no clue what is going wrong here. Is there any other way to refer to mine custom block?
  5. Thank you very much for your help. It worked perfectly but now i have other issue. My Sponge supose to switch water with custom air. But it do it after placing sponge in world. But you can see effect after you relaunch world. When i'm switching custom air to any vanilla block water is replaced instantly after you place the block. But when i am trying to replace water with my custom air block i need to relaunch world to see the effect. I guess i'm making wrong reference to my custom air block and game is able to create it when the world is building.
  6. hello everyone. i have a little problem with my code that i was tryin to slove for week and couldnt find anything helpful. I'm creating mod were one block after its placed checks types of surroind blocks and replace them if they are water. Actualy loop works from time to time. It depends where it is placed. sometimes loop works fine placed on x,y,z cord but if i move block like x+1 its stops working. I'm replacing existing blocks with customAirBlock. I've checked replacing loop with stone blocks and it works in 100%. But when i put in if() else and i'm tryin to use my custom blocks things go wrong.
×
×
  • Create New...

Important Information

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