
Looke81
Members-
Posts
250 -
Joined
-
Last visited
Everything posted by Looke81
-
Screenshot of item: screenshot of block: I have no errors in my console about this block blockstate: { "variants": { "facing=north": { "model": "block_MicrobeExtractorIdle" }, "facing=south": { "model": "block_MicrobeExtractorIdle", "y": 180 }, "facing=west": { "model": "block_MicrobeExtractorIdle", "y": 270 }, "facing=east": { "model": "block_MicrobeExtractorIdle", "y": 90 } } } Block model: { "parent":"block/orientable", "textures": { "top": "biowarfare:blocks/block_MicrobeExtractorTop", "front": "biowarfare:blocks/block_MicrobeExtractorFrontOff", "side": "biowarfare:blocks/block_MicrobeExtractorSide" } } And block registration code: http://pastebin.com/G2rRQ2LP P.s is MicrobeExtractorIdle im doing first then the active version
-
just went through the guide and i got to step 7 straight away because there is nothing in the console log and i'm pretty sure i have the block model right now. So that leaves me at step six and thats what im doing now i guess and i think its something to do with my class so if someone could see if I've made a mistake there. http://pastebin.com/Za9SBWbq
-
Blockstate: { "variants": { "facing=north": { "model": "block_MicrobeExtractorIdle" }, "facing=south": { "model": "block_MicrobeExtractorIdle", "y": 180 }, "facing=west": { "model": "block_MicrobeExtractorIdle", "y": 270 }, "facing=east": { "model": "block_MicrobeExtractorIdle", "y": 90 } } } Blockmodel: { "parent":"block/orientable", "textures": { "top": "biowarfare:blocks/block_MicrobeExtractorTop" "front": "biowarfare:blocks/block_MicrobeExtractorFrontOff" "side": "biowarfare:blocks/block_MicrobeExtractorSide" } }
-
Ok i think i am almost there but now the texture doesnt load and i get this message in the console and i know it cant load the block model but i dont have a clue why not. [18:41:55] [Client thread/ERROR] [FML]: Exception loading model biowarfare:block/block_MicrobeExtractorIdle with loader instance, skipping com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 4 at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?] at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?] at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:269) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$900(ModelLoader.java:65) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:449) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:185) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:168) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:188) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:168) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.loadItems(ModelLoader.java:156) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:90) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:767) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:521) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:356) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 4 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?] at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?] ... 30 more
-
hmm it displays the whole image if the width and height is 256x256 but takes up way too much of the screen and if i use 16x16 its the right size but only renders that much of the image but i thought my image was 16x16 not 256x265?
-
ah right yea thanks it renders properly now but it takes up too much of the screen than i wanted. How it looks now: i thought if i changed the width and height to 16 that would limit were that rendered on the screen but that didn't seem to work
-
I am trying to render my custom potion's icon using the renderInventoryEffect but i dont really know what im doing with drawTexturedModalRect so here is what i came up with but it obviously doesn't work. Heres what it looks like: http://imgur.com/edit And here is the code : @SideOnly(Side.CLIENT) public void renderInventoryEffect(int x, int y, PotionEffect effect, net.minecraft.client.Minecraft mc) { ScaledResolution sr = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight); int Width = sr.getScaledWidth(); int Height = sr.getScaledHeight(); mc.getMinecraft().currentScreen.drawTexturedModalRect(x, y, 16, 16, Width, Height); Minecraft.getMinecraft().renderEngine.bindTexture(ToxicIcon); }
-
[1.8]When item de-spawns replace it with another one.
Looke81 replied to Looke81's topic in Modder Support
i really need to stop derping like this i changed it and it works now thankyou all for the help! -
[1.8]When item de-spawns replace it with another one.
Looke81 replied to Looke81's topic in Modder Support
hmm this doesnt seem to work either tho: if (event.entityItem.getEntityItem().getItem() == BioWarfareItems.itemMoldyBread) { event.entity.dropItem(BioWarfareItems.itemMoldyBread, 1); } -
[1.8]When item de-spawns replace it with another one.
Looke81 replied to Looke81's topic in Modder Support
i thought .getItem() was getting the items entity because its used here: this.getEntityItem().getItem() == Items.nether_star && source.isExplosion()) so how do i get the items entity? -
[1.8]When item de-spawns replace it with another one.
Looke81 replied to Looke81's topic in Modder Support
I must have done something wrong because the bread is still just de-spawning: @SubscribeEvent public void ItemExpireEvent(net.minecraftforge.event.entity.item.ItemExpireEvent event) { if (event.entityItem.equals(new ItemStack(Items.bread).getItem())) { event.entity.dropItem(BioWarfareItems.itemMoldyBread, 1); } } -
[1.8]When item de-spawns replace it with another one.
Looke81 replied to Looke81's topic in Modder Support
oh right yea that's an item not an entity so how do i get a specific item's entity? -
Like the title says i am trying to replace the bread item when it de-spawns using an event handler but either the spawning of the item isn't working or just the event isn't being called but i don't see why because i have registered the event handler and i cant see why this wouldn't work. If anyone else has a solution to my problem it would be greatly appreciated. Here is my code: @SubscribeEvent public void ItemExpireEvent( net.minecraftforge.event.entity.item.ItemExpireEvent event) { if (event.entityItem.equals(Items.bread)) { event.entity.dropItem(BioWarfareItems.itemMoldyBread, 1); } } Here is were i register: @EventHandler public void preInit(FMLPreInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new BioWarfareEventHandler()); FMLCommonHandler.instance().bus().register(new BioWarfareEventHandler());
-
Due to the texture changes in 1.8 with .json files i have not been able to update my block that when placed faces the player. The only working example i can find of this is the vanilla furnace but I cant see were it references the json file for the furnace. If anyone has a working example or explain to me how you go about doing this now that would be very usefull.
-
[1.8] Item textures not working when the mod is built
Looke81 replied to Looke81's topic in Modder Support
At this moment Looke81 new he screwed up. I cant believe I did that. -
[1.8] Item textures not working when the mod is built
Looke81 replied to Looke81's topic in Modder Support
Oh yea sorry although they are all the same: -
[1.8] Item textures not working when the mod is built
Looke81 replied to Looke81's topic in Modder Support
You mean the file location?: Or the actual file text?: -
[1.8] Item textures not working when the mod is built
Looke81 replied to Looke81's topic in Modder Support
hmm i have done this but they still don't work. For every item without a texture it gives me this error. [18:28:54] [Client thread/ERROR] [FML]: Exception loading model biowarfare:models/item/Grenade with vanilla loader, skipping java.io.FileNotFoundException: biowarfare:models/item/Grenade.json at net.minecraft.client.resources.FallbackResourceManager.func_110536_a(FallbackResourceManager.java:70) ~[cvc.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110536_a(SourceFile:55) ~[cvt.class:?] at net.minecraft.client.resources.model.ModelBakery.func_177594_c(ModelBakery.java:260) ~[cxh.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:48) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:414) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:162) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:145) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.loadItems(ModelLoader.java:137) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.func_177570_a(ModelLoader.java:66) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.func_110549_a(ModelManager.java:29) [cxk.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110544_b(SourceFile:104) [cvt.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110541_a(SourceFile:92) [cvt.class:?] at net.minecraft.client.Minecraft.func_110436_a(Minecraft.java:728) [bsu.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:485) [bsu.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:325) [bsu.class:?] at net.minecraft.client.main.Main.main(SourceFile:120) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]