Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/08/17 in all areas

  1. Here's my model registration code. @SubscribeEvent public static void registerModels(ModelRegistryEvent event) { for (Block block : AMBlocks.BLOCKS) { ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); } for (Item item : AMItems.ITEMS) { ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } }
    1 point
  2. You must register your models in the ModeRegistryEvent with ModelLoader.setCustomModelResourceLocation().
    1 point
  3. Hi everyone, I started new mod, but got a problem: Crash-report: So, you can view this file at my GitHub: https://github.com/IvanSteklow/FMHammers/blob/master/src/main/java/ivansteklow/fmhammers/tools/ItemHammer.java HELP ME PLS!!! & excuse me for my broken english
    1 point
  4. YouTubeCommand#processCommand checks if World#isRemote is false, i.e. if the code is being called on the logical server. Since you register it with the client command handler, it will only ever be called from the logical client and the method won't do anything. Is it meant to be a client command or a server command? If it's the former, check for the logical client rather than the logical server (or don't check at all, it will only ever be called on the side you register it for). If it's the latter, you need to register it in FMLServerStartingEvent using FMLServerStartingEvent#registerServerCommand. If your command has sub-commands, you can extend CommandTreeBase and register each sub-command with CommandTreeBase#addSubcommand.
    1 point
  5. 1 point
×
×
  • Create New...

Important Information

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