Everything posted by tiffit
-
Topic: My code is acting weird.
World != world if anyone is confused
-
[SOLVED] Saving player in a Tile Entity
You need to mark dirty when the player is set, or else it will not save
-
Solved [1.8]Get blocks metadata (or equivalent)
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)
Copy nbt too then?
-
Solved [1.8]Get blocks metadata (or equivalent)
Why?
-
CustomStairs extends BlockStairs
Show up the crash report/logs
-
[1.8] [UNSOLVED] GUI ArrayIndexOutOfBoundsException Error
You only have 3 slots, you are trying to access a 4th slot.
-
[SOLVED] Issue setting blocks in world using World.setBlockState
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)
Try this player.inventory.setInventorySlotContents(player.inventory.currentItem, new ItemStack(block, 1, block.getMetaFromState(world.getBlockState(pos))));
-
[1.8] Setting up CCC and NEI
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.
-
[1.8] Saved mod data and deprecated items/blocks.
This is a bad idea if your mod is multiplayer compatible.
-
[1.7.10]Home Usage?!
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
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
-
[1.7.10] 3D Item Rendering Issues
Screenshots? Are you getting any errors?
-
[1.8] [Solved] Texturing is very picky
Oh sorry, my mistake.
-
[1.8] [Solved] Texturing is very picky
I fixed it! For some reason eclipse was not overriding the files when refreshing, so I did it manually and it works now!
-
[1.8] [Solved] Texturing is very picky
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.
-
[1.8] [Solved] Texturing is very picky
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.
-
[1.8] [Solved] Texturing is very picky
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).
-
[1.8] [Solved] Texturing is very picky
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
-
[1.8] [Solved] Texturing is very picky
[/img]
-
[1.8] [Solved] Texturing is very picky
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"));
-
[1.8] [Solved] Texturing is very picky
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
-
[1.8] [Solved] Texturing is very picky
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(); }
-
[1.8] [Solved] Texturing is very picky
I have tried that before, but it didn't work. Let me try again.
IPS spam blocked by CleanTalk.