Jump to content

1.11.2 How Do i replace Vanilla Blocks with the ones I created.


J_Dev

Recommended Posts

I found code that claims it can do this but it is for 1.7.10. So far i have this... I want to take the "fromBlock" and "fromBlock2" and have it instead generate my modded block. Does anyone know what to do?

@SubscribeEvent(priority=EventPriority.HIGHEST, receiveCanceled=true)
	public void onEvent(PopulateChunkEvent.Pre event)
	{
		
		 Chunk chunk = event.getWorld().getChunkFromChunkCoords(event.getChunkX(), event.getChunkZ());
		 Block fromBlock = Blocks.DIRT; 
		 MyModBlocks toBlock = MyModBlocks.MODDED_BLOCK;
		 Block fromBlock2 = Blocks.GRASS; 
		 

			 
			 //I want to replace Dirt and grass blocks with my modded Block
	}

 

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.

Guest
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.

Announcements



×
×
  • Create New...

Important Information

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