Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Awesome_Spider

Forge Modder
  • Posts

    892
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Awesome_Spider

  1. I recently implemented CoFH's RF Api. I heard that Forge's energy capabilities are based off this api, but can it be made to take RF from other mods?
  2. Ok. I don't know why my other block works then.
  3. Here is blockstate json file: { "forge_marker": 1, "defaults": { "textures": { "front": "roboticraft:blocks/purifier_front_inactive", "top": "roboticraft:blocks/purifier_side", "side": "roboticraft:blocks/purifier_side", "particle": "roboticraft:blocks/purifier_side" } }, "variants": { "normal": { "model": "orientable" }, "inventory": { "model": "orientable" }, "facing=north": { "model": "orientable" }, "facing=south": { "model": "orientable", "y": 180 }, "facing=west": { "model": "orientable", "y": 270 }, "facing=east": { "model": "orientable", "y": 90 }, "active=true": { "model": "orientable", "front": "roboticraft:blocks/purifier_front_inactive" } } }
  4. There is an error in the console and my texture is missing only when placed in the world. [19:43:23] [Client thread/ERROR]: Exception loading model for variant roboticraft:purifier#active=true,facing=west for blockstate "roboticraft:purifier[active=true,facing=west]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model roboticraft:purifier#active=true,facing=west with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:806) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:347) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:560) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:385) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) [idea_rt.jar:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 29 more
  5. Oops. I had copied my other machine's blockstate file and didn't change every texture path over. That's embarrassing. Here is the updated json file: "defaults": { "textures": { "front": "roboticraft:blocks/purifier_front_inactive", "top": "roboticraft:blocks/purifier_side", "side": "roboticraft:blocks/purifier_side", "particle": "roboticraft:blocks/purifier_side" } }, "variants": { "normal": { "model": "orientable" }, "inventory": { "model": "orientable" }, "facing=north": { "model": "orientable" }, "facing=south": { "model": "orientable", "y": 180 }, "facing=west": { "model": "orientable", "y": 270 }, "facing=east": { "model": "orientable", "y": 90 } } } Does anyone know how I add another property to this?
  6. You should also post code for something like this.
  7. Now that I look at my email, it does. My email isn't notifying me of new emails. Sorry, that one is not on Forge's end.
  8. I found another thing recently. When you have a spoiler you can't put another spoiler or text after the it or else they will all go inside the first one.
  9. Ok. Thanks. Now how would I change my blockstate json file to incorporate this extra property? I have an animated texture for when "active" is true and a normal one when "active" is false. { "forge_marker": 1, "defaults": { "textures": { "front": "roboticraft:blocks/purifier_front_inactive", "top": "roboticraft:blocks/purifier_side", "side": "roboticraft:blocks/steam_engine_side", "particle": "roboticraft:blocks/steam_engine_side" } }, "variants": { "normal": { "model": "orientable" }, "inventory": { "model": "orientable" }, "facing=north": { "model": "orientable" }, "facing=south": { "model": "orientable", "y": 180 }, "facing=west": { "model": "orientable", "y": 270 }, "facing=east": { "model": "orientable", "y": 90 } } } Btw, I understand you not liking this new software. I have this issue when visiting the site on IPad, for a while we couldn't edit posts, the BBCode capabilities are lacking, putting any text after spoilers puts the text in the spoiler instead of on the outside, the forum doesn't notify through email anymore, etc. They are working it out I'm sure, it is a new software after all.
  10. You can't? Here: @Override public int getMetaFromState(IBlockState state) { int meta = 0; meta = meta | ((EnumFacing)state.getValue(FACING)).getHorizontalIndex(); if (!state.getValue(ACTIVE)) { meta |= 4; } return meta; } @Override public IBlockState getStateFromMeta(int meta) { return getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta)).withProperty(ACTIVE, (meta & 4) == 0); }
  11. Ok. So would this work? I can't test it because the models/textures aren't finished.
  12. So I have finally gotten some time away from my course load to do some modding again. I am having trouble with decoding the meta. Would subtract 4 and check if the facing value is valid? I'm not sure how to do it.
  13. Thanks for the advice everyone. I don't have access to my code right now, so I'll have an update for you when I try that.
  14. A while ago I was having trouble with a block always facing north. This is fixed now, however now I'm on to a new block which requires two properties: Facing and Active. Facing is an EnumFacing and Active is a boolean. I am stuck with what to do with Block#getMetaFromState and Block#getStateFromMeta. My block code so far:
  15. If you want to use RF I think you have to use this. I'm not sure if you can use it in combination with forge's api or not.
  16. Ok. I'm probably doing something wrong or misunderstanding, but I put an item in my container to test the packet, and it froze up. Windows said minecraft was not responding. There is an error in the log. What I got from this error is I can't cast EntityPlayerMP into EntityPlayer. I probably shouldn't have attempted that, that was stupid of me, but the only player instance I could find was in MessageContext#getServerHandler. What should I use instead? Here's my code/log error:
  17. So am I sending this packet to my gui on client side? I've created a packet class using the documentation but I'm not sure where to send it.
  18. I changed it to SlotItemHandler. As far as syncing, I'm unsure how to implement my own. How would I do that?
  19. I just realized the personal text is gone too.
  20. If I'm not supposed to implement IInventory then what about the methods in the container that take IInventory as a parameter? The Slot constructor and IContainerListener#sendAllWindowProperties() that I called in my Container require an IInventory.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.