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.

Bird

Members
  • Joined

  • Last visited

  1. package com.bagasmc.gym.items; import java.util.List; import com.bagasmc.gym.handlers.CreativeTabHandler; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; import net.minecraftforge.fml.common.registry.GameRegistry; public class GymDumbbell extends Item { public static ItemBase dumbBell; gymDumbbell gymdumbbell = new gymDumbbell(); public static void init() { dumbBell = register(new ItemBase("dumbbell").setCreativeTab(CreativeTabHandler.tabBlocks)); } @Override public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean check) { list.add(" STAMINA "); list.add("3 kilos 6.6 lbs"); } private static <T extends Item> T register(T item) { GameRegistry.register(item); if(item instanceof ItemModelProvider) { ((ItemModelProvider)item).registerItemModel(item); } return item; } }
  2. That one, gymDumbbell gymdumbbell = new gymDumbbell();
  3. Can you show how to properly use it please? it keeps giving me error..
  4. Something like this? gymDumbbell gymdumbbell = new gymDumbbell();
  5. Yep, it's me again Any help on this? It does not work. GymDbellItem.java package com.bagasmc.gym.items; import java.util.List; import com.bagasmc.gym.handlers.CreativeTabHandler; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.registry.GameRegistry; public class GymDbellItem extends Item { public static ItemBase gymDumbbell; public static ItemStack dumBell; public static void init() { gymDumbbell = register(new ItemBase("dumbBell").setCreativeTab(CreativeTabHandler.tabBlocks)); } @Override public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean check) { list.add(" STAMINA "); list.add("3 kilos 6.6 lbs"); } private static <T extends Item> T register(T item) { GameRegistry.register(item); if(item instanceof ItemModelProvider) { ((ItemModelProvider)item).registerItemModel(item); } return item; } } It does not show the lore
  6. Oh thanks, its now fixed! Thank you
  7. Hi there. Can anyone help me? i tried lots of tutorials about how to make a custom item, but same result; A purple black checkered texture Please check this project https://github.com/bagasthebird/mod-gym

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.