Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Everything posted by 23kcarlson

  1. You write 1s and 0s on the beans before you put them in the machine.
  2. I am only spawning it if worldIn.isRemote is true. Wouldn't that be the server side? Edit: I could probably also use @SideOnly
  3. I got it to work Here is what I have now: If this can be improved, please let me know.
  4. 1. I just modified the code from the Item class? What should I return? Nothing, and make it a void method? 2. I forgot about that, I'll fix that. Should it only be run on the server? or the client? (I just started learning how to mod btw.)
  5. I have tried searching, but everything is outdated, and I cannot figure out how to get it to work. I think this is as close as I got: public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand) { Vec3d vec3 = playerIn.getPositionEyes(1.0F); Vec3d lookVec = playerIn.getLook(1.0F); Vec3d addedVector = vec3.addVector(lookVec.xCoord * 50.0D, lookVec.yCoord * 50.0D, lookVec.zCoord * 50.0D); RayTraceResult lookPos= new RayTraceResult(playerIn, lookVec); int x =lookPos.getBlockPos().getX(); int y =lookPos.getBlockPos().getY(); int z =lookPos.getBlockPos().getX(); EntityLightningBolt lightning = new EntityLightningBolt(worldIn, x,y,z, false); worldIn.addWeatherEffect(lightning); return new ActionResult(EnumActionResult.PASS, itemStackIn); }
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.