Hopefully somebody can help!
Struggling with world.setBlock using forge 1.7.2 and gradle, I have the following code:
World world = Minecraft.getMinecraft().theWorld;
world.setBlock(xPos+x, yPos+1, zPos+z, Blocks.air,0,0);
world.setBlock(xPos+x, yPos, zPos+z, Blocks.coal_block,20,20);
I can set blocks within my mod, but the blocks reverts back to what they were before the .setBlock command (ie. if you try and use an item on them). when I exist a world, and return, my changes are gone.
Rather than using custom blocks, I want to use standard inventory for the time being (unless I must create a custom block) ? If this something linked to client side changes to server side changes?
It appears that I am making changes to a client side (cache) which is then being overidden by the server side cache?
Any suggestions please ?
Many thanks Lido666