Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. 1.13 will be loading faster, mods will load parallel
  2. your readNBT does nothing usefull you only read the nbt
  3. buy the game, dont use a cracked launcher
  4. package loordgek.itemhandlerv2.captest; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraftforge.event.AttachCapabilitiesEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class lol { public static boolean somthing = false; public ItemStack createNewStack(){ somthing = true; ItemStack stack = new ItemStack(Items.ITEM_FRAME); if (!stack.hasTagCompound()) stack.setTagCompound(new NBTTagCompound()); stack.getTagCompound().setBoolean("somthing", true); somthing = false; return stack; } //note you should a bool to the rhe nbt of the sack if you want the cap to survive between saves @SubscribeEvent public void onAttachCapabilities(AttachCapabilitiesEvent<ItemStack> event) { if (event.getObject().hasTagCompound()){ if (event.getObject().getTagCompound().hasKey("somthing")) //add a cap here } if (somthing)// i made the stack { //add a cap here } } }
  5. did you read what Draco18s wrote ?? what you can do is add a cap using the event that allows adding/removing caps on the fly
  6. if not make a pr
  7. https://gist.github.com/Draco18s/2b02762b597e67a9b887aed241f25077#file-guimultilinetextfield-L23 ?
  8. update minecraft moreplayermodels is for 1.12.2 you have 1.8.9
  9. you have older mods in the mod folder where did you get the mods from
  10. can have your name so we can DM
  11. do you have discord ??
  12. i can make a new mod for you
  13. no you are not annoying me i am trying to help you
  14. yes stop. you have no idea what you are doing
  15. no that will return null EnumFacing orient = state.getValue(BlockDirectional.FACING); and you can get the state for world.getBlockStae
  16. that works but that is not the normal way you should do it like so EnumFacing orient = state.getValue(BlockDirectional.FACING);
  17. you get the facing form the blockstate but something else, BlockPhysics is using a lot of ASM hacks. do you know how ASM works if not please stop.
  18. try adding https://minecraft.curseforge.com/projects/craftstudio-api
  19. https://github.com/qdlmcfresh/smdimp/blob/master/JME20_SMD/src/com/base/model/parser/SMDParser.java google is your best friend use and abuse it
  20. the pr is in now https://github.com/MinecraftForge/MinecraftForge/commit/2a5268c6993f2de7612789bfac2b674d04c87e89
  21. you dont edit clean the clean needs to be there so gradle can make the patches
  22. hint: block
  23. dont look at optifine it really hacks into the forge render stuff dont use it
  24. what mc version are you modding
  25. there is none forgegradle is getting a rewrite https://github.com/amadornes/ForgeGradle that needs to be done first
×
×
  • Create New...

Important Information

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