Jump to content

Mightydanp

Members
  • Posts

    225
  • Joined

  • Last visited

Everything posted by Mightydanp

  1. after i removed the block.getunlocalizedname i am getting this error new block state code BlockEssenceOre http://pastebin.com/FanBzc0c
  2. 59 public static Block registerBlockState(Block block, String name, ItemBlock itemBlock, int numberOfBlockStates, String[] blockBlockStates) { 60 GameRegistry.register(block.setRegistryName(name)); 61 GameRegistry.register(itemBlock.setRegistryName(block.getUnlocalizedName())); 62 final String blockStates[] = blockBlockStates; 63 ResourceLocation[] resLoc = new ResourceLocation[numberOfBlockStates]; 64 for (int i=0; i < numberOfBlockStates; i++) 65 resLoc = new ResourceLocation(References.MODID + ":" + blockStates); 66 ModelBakery.registerItemVariants(Item.getItemFromBlock(block), resLoc); 67 return block; 68 }
  3. heres the whole log
  4. The code crashes my game and says that its that part of the code that crashed it. I dont see what i am doing wrong
  5. i am having trouble with a code i made i get the error at com.mightydanp.eot.core.handler.RegistryHandler.registerBlockState(RegistryHandler.java:60) here is the code http://pastebin.com/YMvEx4KT i would like some help on it. 1.9.4 is just new to me.
  6. This is part of the code in my gradle build the problem is i have put the _at file in that same place but it still will not do as it is sepost to after i do a build
  7. not that hard me and diesieben07 was talking about what to do.... so basically i cannot use Reflection because i cannot it is in a calls i cannot edit and i am trying to get my access transfer to work after i do a build but no luck
  8. You should read the whole topic and replies if you want to know whats going on all of the information is in the topic and replies
  9. So ? How do i do such
  10. i didnt mean that i am saying when i do a build and then put minecraft in the forge it still gives same error like it has done nothing with the _at when it built
  11. i have jar { manifest { attributes 'FMLAT': 'Eot_at.cfg' } } and i have it in my src/api/resources/.....
  12. Yea but the way it does it is in the manifest.mf.. it should look like this Manifest-Version: 1.0 FMLAT: EOT_at.cfg instead it has Manifest-Version: 1.0 when i look in the jar
  13. the dev area isnt the problem its the gradlew buid that is the problem. i am having a problem where it will not put the AT into the jar itself
  14. well it was why i wanted help with my access transformer ive seen alot of modders use it in there mod >.<, but the api of thinkers gets obs into my mod itself for it to be used without tinkers construct, they are under a Creative Commons 3.0 can i change the code in that class or do i have to leave it alone because if i can change some of it i can do what you just told me to do
  15. the problem with that is that the code that i am using is from tinkers api, i have it where the class that i want get obs with my mod so that it dont need tinkers construct to function so i cannot change the code in there classes i have to leave the code as it is i think
  16. i am confused right now so something like this (its 5 am and i cant sleep ) public static final Field buttonList = ReflectionHelper.findField(GuiScreen.class, new String[]{"buttonList", "field_146292_n"}); static{ buttonList.setAccessible(true); }
  17. what do you mean by reuse that same instance ? to me i am thinking to do something like this public static final Field buttonList = ReflectionHelper.findField(GuiScreen.class, new String[]{"buttonList", "field_146292_n"}); public......{ buttonList.setAccessible(true); }
  18. Alright i tried something like this ReflectionHelper.findField(GuiScreen.class, new String[]{"buttonList", "field_146292_n"}).setAccessible(true);; and got this error Exception caught during firing event net.minecraftforge.client.event.GuiScreenEvent$InitGuiEvent$Post@1f0f52d6: java.lang.IllegalAccessError: tried to access field net.minecraft.client.gui.GuiScreen.field_146292_n from class tconstruct.client.tabs.TabRegistry
  19. i have just tried that and i get this error java.lang.NoSuchFieldException: field_146292_n at java.lang.Class.getField(Class.java:1695) at com.mightydanp.eot.EotCore.preInit(EotCore.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) i used this code try { GuiScreen.class.getField("field_146292_n").setAccessible(true); } catch (SecurityException e) { e.printStackTrace(); } catch (NoSuchFieldException e) { e.printStackTrace(); }
  20. Darco is it really that easy ?do i need to put that in the same class that the field is in
  21. the crashlog basicly says that it cannot find a field and that field is mad public in my _at file. the code is part of a api that isnt my code, the part of the code that needs to be made public is this i need to make this public public net.minecraft.client.gui.GuiScreen field_146292_n #buttonList
  22. i have my at in src\main\resources\META-INF....... when i do a build the at does not get included into the jar so it crashes if you try and play it, i would really like to know what i am doing wrong. build.gradle http://pastebin.com/g4r8EGYY
  23. I have a at file but whenever do a build and then run the mod it doesn't work right.... heres my current configuration... src\java\api\resources\tinkers construct.cfg here is my build.gradle http://pastebin.com/4Hjn2XvG and build.properties http://pastebin.com/cQKt524T
  24. i do need it i put it where it needs to go but is there something i need to put in my code or is it all in my build.gradle?
  25. I dont know if this is the file but this is it right here ? https://github.com/SlimeKnights/TinkersConstruct/blob/master/resources/META-INF/TConstruct_at.cfg
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.