Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About bibouche_

  • Rank
    Stone Miner

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Oh I didn’t see the OnlyIn, such a stupid thing 😅, thanks got it to work
  2. public enum ModArmorMaterial implements IArmorMaterial { ARGENTITE(Alcamod.ModID + ":argentite", 40, new int[] { 3, 6, 8, 3 }, 12, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 3.5F, 0.15F, () -> { return Ingredient.fromItems(ModItems.ARGENTITE_INGOT.get()); }), AZURITE(Alcamod.ModID + ":azurite", 45, new int[] { 3, 6, 8, 3 }, 10, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 3.7F, 0.16F, () -> { return Ingredient.fromItems(ModItems.AZURITE_INGOT.get()); }), EMATITE(Alcamod.ModID + ":ematite", 50, new int[] { 3, 6, 8, 3 }, 8, SoundEvents.ITEM_ARMOR_EQUIP_GENERIC, 4.0F, 0.17F, () -> { return Ingr
  3. Yepp, I registered it correctly since it works in singleplayer [20:00:09] [main/ERROR] [ne.mi.fm.ja.FMLModContainer/]: Exception caught during firing event: null Index: 1 Listeners: 0: NORMAL 1: ASM: net.minecraftforge.registries.DeferredRegister$EventDispatcher@424b29b1 handleEvent(Lnet/minecraftforge/event/RegistryEvent$Register;)V 2: ASM: net.minecraftforge.registries.DeferredRegister$EventDispatcher@3ad59387 handleEvent(Lnet/minecraftforge/event/RegistryEvent$Register;)V 3: ASM: net.minecraftforge.registries.DeferredRegister$EventDispatcher@7f10071d handleEvent(Lnet/mi
  4. Hi, so basically I try to launch the server to test my mod on a server, but it crashes on starting because of an "AbstractMethodError : null" on my ArmorItems. I use a DeferredRegister to register my items, and in these I register some ArmorItems : public static final RegistryObject<ArmorItem> ARGENTITE_HELMET = items.register("argentite_helmet", () -> new ArmorItem(ModArmorMaterial.ARGENTITE, EquipmentSlotType.HEAD, new Item.Properties().maxStackSize(1).group(ModItemGroups.ARMORS_TAB))); public static final RegistryObject<ArmorItem> ARGENTITE_CHESTPLATE = items.re
  5. Oups, yeah of course, forgot that. Yepp, got it to work, thank you !!!!
  6. Ok got it, but still the same EDIT : reupload of the TE class https://pastebin.com/hsFJHsWE
  7. Ok so I made it use ItemStackHandler, and removed the write method from the getUpdatePacket. And it's strange because Vanilla TEs juste return null. https://pastebin.com/3CuijXdR
  8. https://pastebin.com/SjjXivkK Yeah I know that, but I did not found a way yet, so I will look at it, maybe add a new CompoundNBT and use it in the functions
  9. https://pastebin.com/DKKj7JNG Yeah, I looked at some vanilla TEs, however they are using CompoundNBT, so I am a litte lost since IItemHandler uses INBT, and like the read and write methods are using CompoundNBT
  10. Yes, because I want it to write the data in the tileEntity on block update
  11. Ok but I tried it and I keep having the same issue, I really don't see what is causing this
  12. Ok so I came up with this : https://pastebin.com/L01ZkFj2, however I think I did something wrong since it did not fixed it, for the Direction I put Direction#NORT but I don't know if it is ok to put a fixed direction like this. I use the default instance since it creates a new IItemHandler with just one slot and it is to avoid creating more instances and classes
  13. Yeah I know I want to change my code formatter but I didn't do it yet XD Ok so I juste have to delete my getItems and read and write ?
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.