Posted August 11, 201510 yr Hi i am reading Minecraft modding forge (Arun Gupta). The book is about modding Minecraft, of course. unfortunately the book was made in version 1.6.4, so the codes have changed . I have actually copied the code from the book and pasted it right to the machine. Still i get an syntax error from: event.block and event.x/y/z. Can anyone help me with this new code? package jattys.mods.forge; import java.util.Random ; import net.minecraft.init.Blocks ; import net.minecraftforge.event.world.BlockEvent.BreakEvent ; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent ; public class DiamondOreTrap { @SubscribeEvent public void explode ( BreakEvent event ) { if ( (syntax error)event.block != Blocks . diamond_ore ) { return ; } event.world.createExplosion( null , (syntax error)event.x , event.y , event.z , 10 , true ); } } Whats wrong?
August 11, 201510 yr how about you tell us which version you are in? if its 1.8 , 1.8 ios working wit hblocksates
August 11, 201510 yr Author I am a freaking noob Sorry Faillander, but i couldn't make the BlockPos idea to work. event.world.createExplosion( null, BlockPos(x, y, z), 10 , true ); It just gives me an syntax error.
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.