Jump to content

DiamondMiner88

Members
  • Posts

    186
  • Joined

  • Last visited

Everything posted by DiamondMiner88

  1. I have another question: when i used snapshot_20171003 this piece of code worked: @Override public IBlockState getStateFromMeta(int meta) { EnumFacing facing = EnumFacing.getHorizontal(meta); return this.getDefaultState().withProperty(FACING, facing); } Now it says that it cannot resolve EnumFacing#getHorizontal Also what is used instead of @Override public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.TRANSLUCENT; } It can't find getBlockLayer() anymore. Is getRenderLayer() used used instead?
  2. Never mind apparently stable_45 is for later than 1.12.2 now redoing setupdecompWorkspace
  3. When i change mappings = "snapshot_20171003" to mappings = "stable_45" and say Import Changes for Gradle i get an error like:
  4. Do you have a adblocker? Try opening Cmd and running ipconfig /flushdns
  5. Sorry, but what does mappings mean? Method names? I looked over it but couldn't find anything. What about Item#setTranslationKey(String) it said it couldn't find that but it should be located in the Item class. I manually looked and i could find that in his version but not my version of the Item class
  6. Use a different version of forge. Delete that one from your %appdata%\.minecraft\versions folder and download a new version from files.minecraftforge.net
  7. Wait. Why do you need the jar if your clicking client extract? If you need a server jar you click server and install and it downloads the necessary library s and the jar to the directory that you tell it to. If you want a client install you click client and it installs forge to %appdata%\.minecraft Then you launch it from the launcher. What are you trying to do? I assume you see the json file as a log file if its in the same directory as the installer.
  8. Does it turn into a json when you download it BEFORE you run it or after you run it?
  9. I got linked to Cadiboo's Example mod because i was having trouble with registering items, so i used his ModUtil and ModCreativeTabs class and a few others. When i copied them to my mod to edit i saw that in the ModCreativeTabs class it had a few errors like: Class 'Anonymous class derived from CustomCreativeTab' must be either be declared abstract or implement abstract method 'getTabIconItem()' in 'CretiveTabs' caused by public static final CustomCreativeTab CREATIVE_TAB = new CustomCreativeTab(MOD_ID, true) { @Override public ItemStack createIcon() { return TAB_ICON_ITEMSTACK; } }; and Method does not override method from it's superclass caused by @SideOnly(Side.CLIENT) @Override abstract public ItemStack createIcon(); and in the ModUtil class: Cannot resolve symbol Item#setTranslationKey(String) also ResourceLocation#getPath() and Item#getNamespace ? caused by @Nonnull public static CreativeTabs[] getCreativeTabs(@Nonnull final Item item) { Preconditions.checkNotNull(item, "Item cannot be null!"); if (item.getRegistryName().getNamespace().equals(Reference.MOD_ID)) { return new CreativeTabs[]{item.getCreativeTab(), ModCreativeTabs.CREATIVE_TAB, CreativeTabs.SEARCH}; } return new CreativeTabs[]{item.getCreativeTab(), CreativeTabs.SEARCH}; } The thing is is that the original source that i got from his mod, had no errors like that. I've tried to update the forge version, didn't help. Can anyone tell me whats going on? Maybe i missed something or forgot to also copy another class. My Github: Here
  10. Ur confusing me. Where do i call from? From what you said i understand that i should call registerItemRender in my ClientProxy from registerModels in my ModelRegistryHandler. Right? And i think ill stick with ItemBases for now until i have the rest of the puzzle solved. Thanks for linking me Cadiboo's mod though ill look through it.
  11. But I already have called ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); As i see, I made an item in ModItems and added it to the itemArray. Then in ModelRegistryHandler for every object in the array it calls that piece of code. Since i already called that i remove ModItems.ITEMS.add(this); and @Override public void registerModels() { ModelRegistryHandler.//Here } Right? And in my ClientProxy I have @SubscribeEvent public void registerItemRenderer(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id)); } I remove that too since i already registered the model client-side?
  12. Sorry i don't know what you mean by English is not my first language so i don't understand what that means. Also in my ItemBase it says ModItems.ITEMS.add(this); and @Override public void registerModels() { Main.proxy.registerItemRenderer(this, 0, "inventory"); } Since for the adding to the array one i already have a another one, do i just remove it? The registerModels() I'm pretty sure i just remove it since i already have @SubscribeEvent public static void registerModels(ModelRegistryEvent event) { for (Item item : ModItems.itemArray) { registerModel(item); } } private static void registerModel(Item item) { ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } In my ModelRegistryHandler. If i were to avoid ItemBasics, etc. how would i do that? What about changing options for it like setCreativeTab(TabCharacterMod.TAB_CHARACTER_MOD); Isin't what i already have the same as what you said?
  13. Sorry for the very late reply, (I started to play other games *cough cough fortnite* and forgot about MC but got back to finishing my mod.) I have one more question. The ItemBasic class contains what? I am trying to register it but have no idea what to put instead of the previous version with the IHasModel. I updated my Github. Here
  14. We have 4 people so far telling you that you should know how to override. All of them are more experienced than you at java from what we've seen so far. If you don't want to learn the java, we are no help to you until you know at least the basics. The post could have been ended right then and there if you knew how to override.
  15. As i see, the error occurred because of java.lang.NoClassDefFoundError. The problem is tconstruct so try downloading a different version of it and see what happens.
  16. Do you have any mods installed? Are you using forge and are your friends using forge? What version of Forge and Minecraft version are you using and your friends? How are you using to get them to connect to your server outside the network? ex: Hamachi, Port-Forwarding, other VPNs, etc. If you don't add mods manually, forge doesen't install ones. My suggestion is to get your friends to delete the version of Forge/Minecraft and re-download it, you to also do the same. Then Delete your server along with your world and re-download a new server jar from this site. From my perspective it looks like your server or your friend's version of the wheat shaped recipe is corrupted, but this is just a guess.
  17. Why?  Wait so you're saying that that's not needed to call the proxies? Does this call them at the right time? @SidedProxy(clientSide = Reference.CLIENT_PROXY, serverSide = Reference.SERVER_PROXY) public static CommonProxy proxy; Like any other event. Other subscribing events i see are like this @SubscribeEvent public static void onBlockRegister(RegistryEvent.Register<Block> event) { event.getRegistry().registerAll(ModBlocks.BLOCKS.toArray(new Block[0])); } Should i do @SubscribeEvent with WHAT underneath?
  18. Ok so i get what subscribing is but how do i subscribe to ModelRegistryEvent? And do i call ModelLoader from my RegistryHandler or my ClientProxy? i also added in my Main.init() proxy.init();
  19. I have no idea but have a look at DraconicEvolution's Chargable pickaxe with RF here: WyvernPick MiningToolBase ToolBase
  20. You mean just stop working? Cant you just make the tool unbreakable?
  21. Would I remove the method registerItemRenderer() or just subscribe it to that and what would i do with the init() method? The subscribing still makes no sense for me. What purpose does it serve?
×
×
  • Create New...

Important Information

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