Jump to content

[1.9.4] Blocks not rendering change


Recommended Posts



I have this tool that when I right click, it fills a flat area with Blocks. The problem is, the blocks sometimes get placed on the server and client side correctly,

but when the amount of blocks that are changing is too large, they only get placed on the client side.


Here's my code:

public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)

	matToReplace = world.getBlockState(pos);
	for(int i = 0; i < 80; i++) {

		for(int j = 0; j < positions.size(); j++) {

			if(side == EnumFacing.NORTH || side == EnumFacing.SOUTH) {
			if(side == EnumFacing.EAST || side == EnumFacing.WEST) {
			if(side == EnumFacing.DOWN || side == EnumFacing.UP) {




	for(int k = 0; k < positions.size(); k++) {

		world.setBlockState(positions.get(k), Block.getBlockFromName(stack.getTagCompound().getString("material")).getStateFromMeta(stack.getTagCompound().getInteger("damage")));
		world.scheduleBlockUpdate(positions.get(k), world.getBlockState(positions.get(k)).getBlock(), 1, 1);



	return EnumActionResult.PASS;


Any help would be apprechiated

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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