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.

progamergalil

Members
  • Joined

  • Last visited

  1. So how can I resolve this problem? What I have to do?
  2. @MFMods Tells me that this is possible...how?
  3. OK, so I will use setBlockState, but it requiers an IBlockState, that must have the Block state ( setBlockState(pos, IBlockState, 3); ) ...how can I set Light Level by using this?
  4. Hello, how I can update the current light level?...This is my code: @SubscribeEvent public void NearUraniumEvent(PlayerEvent event) { int blockX = event.entityPlayer.getPosition().getX(); int blockY = event.entityPlayer.getPosition().down().getY(); int blockZ = event.entityPlayer.getPosition().getZ(); BlockPos pos = new BlockPos(blockX, blockY, blockZ); Block block = event.entityPlayer.worldObj.getBlockState(pos).getBlock(); if(block == NukeMod.uranium_grass) { System.out.println("Uranium_grass down!"); event.entityPlayer.worldObj.getBlockState(pos).getBlock().setLightLevel(1.0F); }else { event.entityPlayer.worldObj.getBlockState(pos).getBlock().setLightLevel(0.0F); } int light = event.entityPlayer.worldObj.getBlockState(pos).getBlock().getLightValue(); System.out.println("Light: " + light); } The light value changes correctly (There is the print in console...), but I don't know hoe to refresh the block Help me please.
  5. Then why onItemRightClick works as a loop?
  6. How can't be a command similar to EnumHand in minecraft 1.8???
  7. Unluckly there isn' t EnumHand
  8. ok...and the other parameter?
  9. Ok, but what do I write in "the active side", "side I care about && active hand", "hand I care about". Sorry, I 'm very ignorant in this program.
  10. Yes, but I don't know how to make it
  11. I want to send message "hello" every time I right click with my custom sword... How can I make in this case?
  12. Sorry, but I ' new in this type of program... Can you make an easy example?
  13. Sorry, I mean once per side / per hand... Can you give me an easy example?
  14. Can I have an example? I haven't found any example of this function...

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.