Jump to content

Bird

Members
  • Posts

    7
  • Joined

  • Last visited

Bird's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.