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.

Airfix

Members
  • Joined

  • Last visited

  1. I'm trying to update some code from an older forge/mincraft version. It's really a basic do something when the player stands on a black of glass. I'm having trouble with the old entity.worldobj.getBlock(posX, posY, posZ) porting it through to forge 1.11 Here is what I have: if (event.getEntity().world.getBlock( ((int) Math.floor(event.getEntity().posX)), ((int) Math.floor(event.getEntity().posY)) - 2, ((int) Math.floor(event.getEntity().posZ))) != Blocks.GLASS) { return; Cheers Airfix
  2. Doh! That's very frustrating. Did that change recently? I don't remember that before. Ah well, it works now. I knew it would be something simple. Cheers, Airfix
  3. I've recently installed a new version of minecraft, forge and eclipse. As a test a ran a quick mod that I had working (with my old system) just to quickly verify the modding process is working. It's not. When I run the mod from Eclipse only the Forge example mod loads up. My new mod "BlockBreakMEssage" is not working. Obviously I'm a newbie to forge modding but I'm pretty sure I installed everything correctly using the gradle and the eclipse patches etc. Here's what I have: Minecraft Version 1.11.2 Forge MDK Version 1.11.2 - 13.20.0.2228 Eclipse Version Neon.2 Release 4.6.2 I have a fairly simple mod that I took from a Gupta's Minecraft Modding with Forge book: Main package org.devoxx4kids.forge.mods; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; @Mod(modid = Main.MODID, version = Main.VERSION) public class Main { public static final String MODID = "myMods"; public static final String VERSION = "1.0"; @EventHandler public void init(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new BlockBreakMessage()); } } BlockBreakMessage package org.devoxx4kids.forge.mods; import net.minecraft.util.text.TextComponentString; import net.minecraft.util.text.TextFormatting; import net.minecraftforge.event.world.BlockEvent.BreakEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class BlockBreakMessage { @SubscribeEvent public void sendMessage(BreakEvent event){ event .getPlayer() .sendMessage( new TextComponentString( TextFormatting.GOLD + "You broke a block now you smell of poop!")); } } The console tells me of a couple of errors: Here is the full console output: Cheers for any guidance over what is probably a minor error that I can't find. Airfix
  4. My grandson has just completed a summer camp teaching him how to make Minecraft textures using Eclipse and Forge. I'm trying to get Forge and Eclipse running on our home windows 7 pc using online tutorials. However I installed forge using the installer rather than the source. When it comes to running eclipse the tutorials tell me to point the workspace to the forge/mcp/eclipse folder. However I can't find this folder anywhere on my machine. All other aspects seem to work okay. When Minecraft is opened there is a Forge profile showing his mods I just can't figure out where to point the eclipse workspace to. Cheers, Airfix

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.