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 08/21/17 in all areas

  1. In your class that extends Enchantment you can override Enchantment#canApplyAtEnchantingTable and check if the item in the ItemStack parameter matches your items.
  2. Having same problem, for now, try setupDevWorkspace, wont give source files, but will let you mod
  3. Do not try to modify entity motion. If you want to make it move faster/slower, apply attribute modifier to it's movement speed attribute. Use entity.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).applyModifier(new AttributeModifier((UUID idIn, String nameIn, double amountIn, int operationIn))); to apply attribute modifier and entity.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).removeModifier(UUID idIn) to remove the modifier, when you don't need it. If you don't understand, look at https://minecraft.gamepedia.com/Attribute to see how attributes and modifiers work.
  4. For this I think that you can start from your "main" block and use it's position to check the other blocks beside. E.g.: Elven portal in Botania have a main block in the lowest part and this need to have 1 block in left part and one in righ part (and other blocks, but is an example). You can get the BlockPos of this main block and check if on x+1 and x-1 or z+1 and z-1 if there's the right blocks. I think that you can do this check on a TickHandler (I think that the best in this case can be the Server TickHandler). I don't know if there's some other more simplest methods to do that... UPDATE: Here you can find the Botania source code: https://github.com/Vazkii/Botania/tree/1.12
  5. jumm i just folow this http://www.minecraftforge.net/wiki/Key_Binding soo in mi folder forge-1.8-11.14.0.1261-1.8-src/src/main/java/mercenarymod/utilidades/ i create //KeyBindings.java //__________________________________________________________ package mercenarymod.utilidades; import org.lwjgl.input.Keyboard; //import net.java.games.input.Keyboard; import net.minecraft.client.settings.KeyBinding; import net.minecraftforge.fml.client.registry.ClientRegistry; public class KeyBindings { // Declare two KeyBindings, ping and pong public static KeyBinding ping; public static KeyBinding pong; public static void init() { // Define the "ping" binding, with (unlocalized) name "key.ping" and // the category with (unlocalized) name "key.categories.mymod" and // key code 24 ("O", LWJGL constant: Keyboard.KEY_O) ping = new KeyBinding("key.ping", Keyboard.KEY_O, "key.categories.MercenaryMod"); // Define the "pong" binding, with (unlocalized) name "key.pong" and // the category with (unlocalized) name "key.categories.mymod" and // key code 25 ("P", LWJGL constant: Keyboard.KEY_P) pong = new KeyBinding("key.pong", Keyboard.KEY_P, "key.categories.MercenaryMod"); // Register both KeyBindings to the ClientRegistry ClientRegistry.registerKeyBinding(ping); ClientRegistry.registerKeyBinding(pong); } } //_____________________________________________________________ //and create too //KeyInputHandler.java //_____________________________________________________________ package mercenarymod.utilidades; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.InputEvent; //import cpw.mods.fml.common.eventhandler.SubscribeEvent; //import cpw.mods.fml.common.gameevent.InputEvent; public class KeyInputHandler { @SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent event) { if(KeyBindings.ping.isPressed()) System.out.println("ping"); if(KeyBindings.pong.isPressed()) System.out.println("pong"); } } //_____________________________________________________________ ¿but where the fucks goes this line? FMLCommonHandler.instance().bus().register(new mercenarymod.utilidades.KeyBindings()); putit in preinit, noting happen when press 'p' or 'o' nothing in the controls menu putit in init, noting happen when press 'p' or 'o' nothing in the controls menu putit in postinit, noting happen when press 'p' or 'o' nothing in the controls menu all the code seems to be rigth in eclipse.

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.