Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/14/19 in all areas

  1. What you have is fine, however you need to override createSpawnPacket in your Entity class and give it your own IPacket that spawns the entity in the handle method and basically does what SSpawnObjectPacket does. But for your Entities/Entity.
    2 points
  2. Use PlayerEntity#areEyesInFluid(FluidTags.WATER)
    1 point
  3. yeah I ended up replacing the forge and it all works correctly now thank u so much for all the help
    1 point
  4. 1 point
  5. strange, sounds like one of the jars is corrupted, try replacing it.
    1 point
  6. The log gives information on wich mods were loaded. and only NEI has an "E" in its state so that means it errored. If I remember correctly NEI has a dependency, maybe look for that. Or use Just enough items, I think it's a newer version of NEI.
    1 point
  7. It would be REALLY helpful to know what's going wrong or what you're even trying
    1 point
  8. Very strange, as I do not have a solution I will just show you my code, as an example. Items: event.getRegistry().register(new ArmorItem(ModArmorMaterials.copper, EquipmentSlotType.HEAD, new Item.Properties().group(MoreStuff.morestuff_armor.GroupArmor)).setRegistryName("copper_helmet")); event.getRegistry().register(new ArmorItem(ModArmorMaterials.copper, EquipmentSlotType.CHEST, new Item.Properties().group(MoreStuff.morestuff_armor.GroupArmor)).setRegistryName("copper_chestplate")); event.getRegistry().register(new ArmorItem(ModArmorMaterials.copper, EquipmentSlotType.LEGS, new Item.Properties().group(MoreStuff.morestuff_armor.GroupArmor)).setRegistryName("copper_leggings")); event.getRegistry().register(new ArmorItem(ModArmorMaterials.copper, EquipmentSlotType.FEET, new Item.Properties().group(MoreStuff.morestuff_armor.GroupArmor)).setRegistryName("copper_boots")); Materials: public enum ModArmorMaterials implements IArmorMaterial { redtunica("redtunica", 3, new int[]{0, 0, 0, 0}, 5, Items.STRING, "item.armor.equip_leather", 0.0f), bronze("bronze", 14, new int[]{2, 4, 5, 3}, 15, null, "item.armor.equip_gold", 0.5f), copper("copper", 29, new int[]{3, 6, 5, 3}, 10, null, "item.armor.equip_iron", 0.8f); //enum private static final int[] max_damage_array = new int[]{13, 15, 16, 11}; private String name, equipSound; private int durability, enchantibility; private int[] damageReductionAmounts; private Item repairItem; private float toughness; private ModArmorMaterials(String name, int durability, int[] damageReductionAmounts, int enchantibility, Item repairItem, String equipSound, float toughness) { this.name = name; this.equipSound = equipSound; this.durability = durability; this.enchantibility = enchantibility; this.damageReductionAmounts = damageReductionAmounts; this.repairItem = repairItem; this.toughness = toughness; } @Override public int getDurability(EquipmentSlotType slot) { return max_damage_array[slot.getIndex()] * this.durability; } @Override public int getDamageReductionAmount(EquipmentSlotType slot) { return this.damageReductionAmounts[slot.getIndex()]; } @Override public int getEnchantability() { return this.enchantibility; } @Override public SoundEvent getSoundEvent() { return new SoundEvent(new ResourceLocation(equipSound)); } @Override public Ingredient getRepairMaterial() { return Ingredient.fromItems(this.repairItem); } @Override public String getName() { return MoreStuff.MODID + ":" + this.name; } @Override public float getToughness() { return this.toughness; } } you should check everything. I hope this is able to help you
    1 point
  9. This is sounding like Twitch screwed up Forge's installation process, try repairing the profile
    1 point
  10. I think Gui#blit expects the texture to be 256x256
    1 point
  11. You need to call tickRandomly on your Properties or override ticksRandomly(BlockState) in your Block file.
    1 point
×
×
  • Create New...

Important Information

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