tiffit
Forge Modder-
Posts
242 -
Joined
-
Last visited
Everything posted by tiffit
-
World != world if anyone is confused
-
You need to mark dirty when the player is set, or else it will not save
-
Solved [1.8]Get blocks metadata (or equivalent)
tiffit replied to Hamster_Furtif's topic in Modder Support
What do you mean no accossiated item? You mean the ItemBlock just doesn't exist, or the item is unobtainable in vanilla -
Solved [1.8]Get blocks metadata (or equivalent)
tiffit replied to Hamster_Furtif's topic in Modder Support
Copy nbt too then? -
Solved [1.8]Get blocks metadata (or equivalent)
tiffit replied to Hamster_Furtif's topic in Modder Support
Why? -
Show up the crash report/logs
-
[1.8] [UNSOLVED] GUI ArrayIndexOutOfBoundsException Error
tiffit replied to TheDogePwner's topic in Modder Support
You only have 3 slots, you are trying to access a 4th slot. -
[SOLVED] Issue setting blocks in world using World.setBlockState
tiffit replied to Arkathorn's topic in Modder Support
You are setting the block on the client side, not the server side. May we see some more of your code? -
Solved [1.8]Get blocks metadata (or equivalent)
tiffit replied to Hamster_Furtif's topic in Modder Support
Try this player.inventory.setInventorySlotContents(player.inventory.currentItem, new ItemStack(block, 1, block.getMetaFromState(world.getBlockState(pos)))); -
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.
-
This is a bad idea if your mod is multiplayer compatible.
-
If I remember correctly, it's so that enemies don't stray too far from their spawn. I might be completely wrong though.
-
[1.8][SOLVED]Compiling mod with dependencies
tiffit replied to decebaldecebal's topic in Modder Support
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 -
Screenshots? Are you getting any errors?
-
Oh sorry, my mistake.
-
I fixed it! For some reason eclipse was not overriding the files when refreshing, so I did it manually and it works now!
-
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.
-
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.
-
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).
-
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
-
[/img]
-
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"));
-
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
-
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(); }
-
I have tried that before, but it didn't work. Let me try again.