Jump to content

tiffit

Forge Modder
  • Posts

    242
  • Joined

  • Last visited

Everything posted by tiffit

  1. You need to mark dirty when the player is set, or else it will not save
  2. What do you mean no accossiated item? You mean the ItemBlock just doesn't exist, or the item is unobtainable in vanilla
  3. You only have 3 slots, you are trying to access a 4th slot.
  4. You are setting the block on the client side, not the server side. May we see some more of your code?
  5. Try this player.inventory.setInventorySlotContents(player.inventory.currentItem, new ItemStack(block, 1, block.getMetaFromState(world.getBlockState(pos))));
  6. This guide is to help you install NEI (Not enough items) and CCC (CodeChickenCore) into your workspace. 1. Download CCC and NEI You will need to download CCC and NEI to use them. Download them by going to this link. You will need the dev version for both CCC and NEI. 2. Place CCC and NEI Now, since you have NEI and CCC downloaded, place them in your eclipse/mods folder. 3. Run MC Now that you have the mods installed, simply run minecraft. 4. MCP Config Dir If you have everything correctly, a window should popup saying "Select an mcp conf dir for the deobfuscator" If this comes up, download this file. Unzip the file and direct the selection window to that file. You should now have CCC and NEI installed. If you have any questions, feel free ask them and I will try to respond as quick as I can.
  7. This is a bad idea if your mod is multiplayer compatible.
  8. If I remember correctly, it's so that enemies don't stray too far from their spawn. I might be completely wrong though.
  9. You are trying to convert something into a Boolean, has nothing to do with CCC and NEI. Read the error, it's in AdvancedCoalRefiner line 125
  10. Screenshots? Are you getting any errors?
  11. I fixed it! For some reason eclipse was not overriding the files when refreshing, so I did it manually and it works now!
  12. A working model: { "parent": "tiffitmachines:builtin/generated", "textures": { "layer0": "tiffitmachines:items/fireBar" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } empty.json: { "parent": "tiffitmachines:builtin/generated", "textures": { "layer0": "tiffitmachines:items/fireBar" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } I have everything like the minecraft by example. My model bakery is in preInit. Are you guys stumped? Cause I definitely am.
  13. nothing else is registered in preinit and they work? I just don't know what "empty" doesn't work, but everything else works. But sure, let me put em in preinit.
  14. Also if you think that its something wrong with the model file, its not. I copied and pasted everything from a working model into empty.json (even the texture is the same).
  15. ok ok. I see your logic. But why then, does this not work? Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(demonBar, 0, new ModelResourceLocation(MODID + ":empty", "inventory")); demonBar only has 1 variant, but the "empty" model isn't showing. Why? Also, good morning
  16. ok, ok. ill try all your examples. Someone tell me why THIS works then. Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Program, 0, new ModelResourceLocation(MODID + ":copperIngot", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Program, 1, new ModelResourceLocation(MODID + ":copperIngot", "inventory"));
  17. You aren't understanding the problem, other things texture just fine. Its just the name that won't work. If I change the name to something else that does work, it works then. So the code is fine. Something else is broken. Ive added the modid, still not being textured
  18. Still doesn't work. Here is my entire init method @EventHandler public void init(FMLInitializationEvent event){ network.registerMessage(ControlledStrikerPackets.Handler.class, ControlledStrikerPackets.class, 0, Side.SERVER); network.registerMessage(MonsterClonerPackets.Handler.class, MonsterClonerPackets.class, 1, Side.SERVER); network.registerMessage(FillTankPackets.Handler.class, FillTankPackets.class, 2, Side.SERVER); if(event.getSide() == Side.CLIENT){ ModelBakery.addVariantName(Program, new String[]{"empty", "empty", "empty", "empty", "empty", "empty", "empty", "empty", "empty"}); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(copperIngot, 0, new ModelResourceLocation(MODID + ":copperIngot", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(chargedCopperIngot, 0, new ModelResourceLocation(MODID + ":chargedCopperIngot", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(chargedDust, 0, new ModelResourceLocation(MODID + ":chargedDust", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(chargedDustCluster, 0, new ModelResourceLocation(MODID + ":chargedDustCluster", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(fireBar, 0, new ModelResourceLocation(MODID + ":fireBar", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(hellBar, 0, new ModelResourceLocation(MODID + ":hellBar", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(demonBar, 0, new ModelResourceLocation(MODID + ":demonBar", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Program, 0, new ModelResourceLocation(MODID + ":empty", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Program, 1, new ModelResourceLocation(MODID + ":empty", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(Machine), 0, new ModelResourceLocation(MODID + ":Machine", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(ControlledStriker), 0, new ModelResourceLocation(MODID + ":ControlledStriker", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(MonsterCloner), 0, new ModelResourceLocation(MODID + ":MonsterCloner", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(Programmer), 0, new ModelResourceLocation(MODID + ":Programmer", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(electricTransformer), 0, new ModelResourceLocation(MODID + ":electricTransformer", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(electricalWireCopper), 0, new ModelResourceLocation(MODID + ":electricalWireCopper", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(electricalWireIron), 0, new ModelResourceLocation(MODID + ":electricalWireIron", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(electricalWireGold), 0, new ModelResourceLocation(MODID + ":electricalWireGold", "inventory")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(copperBlock), 0, new ModelResourceLocation(MODID + ":copperBlock", "inventory")); } proxy.registerProxies(); CraftingRecipe.registerCraftingRecipies(); Achievements.registerAchievements(); }
  19. I have tried that before, but it didn't work. Let me try again.
×
×
  • Create New...

Important Information

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