Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

23kcarlson

Members
  • Joined

  • Last visited

  1. You write 1s and 0s on the beans before you put them in the machine.
  2. Hmm I guess I misinterpreted what I read previously
  3. I am only spawning it if worldIn.isRemote is true. Wouldn't that be the server side? Edit: I could probably also use @SideOnly
  4. I got it to work Here is what I have now: If this can be improved, please let me know.
  5. 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.)
  6. 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); }

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.