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.

KakesRevenge

Members
  • Joined

  • Last visited

  1. 1 More question .. My game is crashing cause of this line Why ?
  2. Oh i see .. i feel like an idiot now, cause i was trying to find this method earlier Thanks
  3. Thanks but i need to know the name. With hasDisplayName i only know if its named
  4. Hey, Is it possible to find out how a certain item has been named in an anvil? Thx4Help
  5. Oh ok isnt it something with the constructor ? we had problem with armer code which was calling the constructor of playerclasshandler and it has set the current class to unset again do you have a solution 4 that ?
  6. Do you have any tutorials for packets ? and how to solve the saving thing ?
  7. We have a command (/class) which is checking what is the current class. You can look at it here : https://github.com/KakesRevenge/ProjektWow/blob/master/src/main/java/cz/grossik/projektwow/command/GetClass.java
  8. setUnlocalizedName() is for naming items setBlockName() is for naming blocks
  9. Look at TiCon code there is reciperemover class and bunch of usefull stuff in it
  10. You need to make a class for the block .. and this coding style is awful
  11. I want to do it in onBlockActivated Method
  12. Yes on a block and with no tile entity ...
  13. Hello, I want to find out is an item is laying on the block ... How should i do that ? BTW: i know laying item is an entity ... Thx in advance
  14. + You dont need to spawn item you can just do event.drops.add(youritemstack) EDIT : this code works fine for me @SubscribeEvent public void harvestDrops (HarvestDropsEvent event) { if(event.block.equals(Blocks.stained_glass)) { event.drops.add(new ItemStack(Blocks.stained_glass,1,event.blockMetadata)); } }

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.