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.

Leaderboard

Popular Content

Showing content with the highest reputation on 07/03/19 in all areas

  1. Hello! I have onUpdate method onUpdate(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) I need to check - is item in world as dropped item, after that I need to change item to another. How can I do this?
  2. I added dependency to support JEI: dependencies { deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api" runtime "mezz.jei:jei_${mc_version}:${jei_version}" } After I ran gradlew build (don't know why) and this cause a lot of errors (Cannot resolve symbol on FMLInitializationEvent and etc.). How to fix all?
  3. Magically solved ?
  4. So, after that I spawn new entityitem: @Override public boolean onEntityItemUpdate(EntityItem entityItem) { World world = entityItem.world; if (world.isRemote) { world.createExplosion(entityItem, entityItem.posX, entityItem.posY, entityItem.posZ, 0f, true); world.removeEntity(entityItem); world.spawnEntity(new EntityItem(world, entityItem.posX, entityItem.posY, entityItem.posZ, new ItemStack(ItemsRegistry.URANIUM, 1))); } return super.onEntityItemUpdate(entityItem); } But, I can't pickup new EntityItem. How can I fix this?
  5. There's also a minecraft:fences tag, which includes all wooden fences plus the nether brick fence. That sounds like a suitable place to add your metal fence. To add your block to that tag, create a file src/main/resources/data/minecraft/tags/blocks/fences.json in your project, and add something like: { "replace": false, "values": [ "yourmod:your_fence_block" ] } substituting in the correct block ID, of course. The "replace": false part there indicates that you're appending your block to the minecraft:fences tag, rather than overwriting it. If you want to browse all existing (vanilla) tags from your IDE, look for the external library "net.minecraft:client:extra:1.14.3" in your project dependencies tab (at least for IntelliJ, don't ask me about Eclipse). Under there you'll see all the assets and data resources from vanilla, which can be a very useful reference.
  6. Any chance this will be added to the Block.Properties as it seems a bit redundant to create a class for a block just to set a harvest level?
  7. When you declare a texture, don't add the "PNG" suffix, it's implied [example here] Also, your setup method seems a rather roundabout way of simply adding a .setRegistryName to your registry entry [other example]. I'll have to leave the GUI question to someone else as I haven't tackled on of those since 1.7 /P
  8. You must use Java 8 to launch any Forge version before 1.13

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.