Posted July 26, 20178 yr 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 }
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.