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.

J_Dev

Members
  • Joined

  • Last visited

  1. I want to make it so that when the player wears my modded armor the game will detect it and act accordingly. in older versions I believe you had to do this. ItemStack helmet = this.getEquipmentInSlot(4); if(helmet == mymod.myhelmet) { //do this } but i believe it no longer works for 1.12.
  2. Okay I did everything else but I do not know how to do the IStateMapper thing. How do i do this, or could you point me to where i can learn about this. Thank you so much for the help so far, i reallt appreciate it. I am new to modding and all the help makes me really want to learn more.
  3. https://pastebin.com/J_Dev
  4. I did this and it worked. Thank you so much, however the block is no longer textured. How do i fix this?
  5. Thank you, I updated to 1.12. But, how exactly do i do what you are describing, or do you know where i can read up on it?
  6. No, I want it to generate my block instead of Grass and Dirt
  7. I want to completely get rid of Grass and dirt and instead spawn only my block
  8. Does Nobody know? seriously?
  9. I found code that claims it can do this but it is for 1.7.10. So far i have this... I want to take the "fromBlock" and "fromBlock2" and have it instead generate my modded block. Does anyone know what to do? @SubscribeEvent(priority=EventPriority.HIGHEST, receiveCanceled=true) public void onEvent(PopulateChunkEvent.Pre event) { Chunk chunk = event.getWorld().getChunkFromChunkCoords(event.getChunkX(), event.getChunkZ()); Block fromBlock = Blocks.DIRT; MyModBlocks toBlock = MyModBlocks.MODDED_BLOCK; Block fromBlock2 = Blocks.GRASS; //I want to replace Dirt and grass blocks with my modded Block }
  10. How do i do it? i keep getting errors
  11. Is it at all possible to adapt this to 1.11.2
  12. I created a new block for Minecraft 1.11.2. How do i go about replacing vanilla blocks with my new block? for example, i want to replace Grass and dirt with my new block.
  13. Thank you everyone! with your help, I was able to figure out what to do.

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.