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.

tiffit

Forge Modder
  • Joined

  • Last visited

Everything posted by tiffit

  1. World != world if anyone is confused
  2. You need to mark dirty when the player is set, or else it will not save
  3. What do you mean no accossiated item? You mean the ItemBlock just doesn't exist, or the item is unobtainable in vanilla
  4. Show up the crash report/logs
  5. You only have 3 slots, you are trying to access a 4th slot.
  6. You are setting the block on the client side, not the server side. May we see some more of your code?
  7. Try this player.inventory.setInventorySlotContents(player.inventory.currentItem, new ItemStack(block, 1, block.getMetaFromState(world.getBlockState(pos))));
  8. 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.
  9. This is a bad idea if your mod is multiplayer compatible.
  10. If I remember correctly, it's so that enemies don't stray too far from their spawn. I might be completely wrong though.
  11. 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
  12. Screenshots? Are you getting any errors?
  13. Oh sorry, my mistake.
  14. I fixed it! For some reason eclipse was not overriding the files when refreshing, so I did it manually and it works now!
  15. 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.
  16. 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.
  17. 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).
  18. 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
  19. 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"));
  20. 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
  21. 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(); }
  22. I have tried that before, but it didn't work. Let me try again.

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.