Jump to content

Legenes

Members
  • Posts

    139
  • Joined

  • Last visited

Everything posted by Legenes

  1. Hi! I was thinking about making a machine that generates RF from fuels, and it should display its current progress of burning. My problem is that I don't know the best way to sync up the tile with the GUI. Should I use a custom capability or just a packet of some kind? If I should use one of them, what should I implement? Thanks for the help!
  2. Put the loot table's file in to you mod's data/minecraft/loot_tables/ folder with the same name, but make it drop something you want, or nothing. You're basically able to overwrite already existing files in minecraft, if I'm correct.
  3. Thanks, now I only need a tutorial for waila/hwyla.
  4. It's not a folder, it's a method, and he highlighted it with the link.
  5. Hi! I want to add JEI and Waila support to my mod, but I don't know how to do it and I didn't find anything about it. Could somebody explain me how does this work? Thanks!
  6. P.S.: What tutorial did you use? If none, or only ForgeDocs, I would recomment to use Shadowfact's tutorial. (Only thing he does poorly, is the proxy system, that one should be made using the ForgeDocs.)
  7. You aren't setting your BLOCKS array's values, you're just making it, and you make a totally different Block. You should have something in you MTBlocks class: public class MTBlocks { public static final MTBlockBase TESTBLOCK = new MTBlockBase("testblock", Material.IRON); public static final Block[] BLOCKS = { TESTBLOCK }; } and you should have something like this in your RegistryHandler: @EventBusSubscriber public class RegistryHandler { @SubscribeEvent public static void onItemRegister(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll(MTItems.ITEMS); //This should be remade too for (Block Block_ : MTBlocks.BLOCKS) registry.register(Block_.createItemBlock()) // You need to register the Block's items too } @SubscribeEvent //You didn't wrote it. public static void onBlockRegister(RegistryEvent.Register<Block> event) { event.getRegistry().registerAll(MTBlocks.BLOCKS); } @SubscribeEvent public static void onModelRegister(ModelRegistryEvent event) { for(Item item : MTItems.ITEMS) { if(item instanceof MTModel) { System.out.println("Item registered"); ((MTModel)item).registerModels(); } } for(Block block : MTBlocks.BLOCKS) { if(block instanceof MTModel) { System.out.println("Block registered"); ((MTModel)block).registerModels(); } } } This code (Edit) isn't 100% correct, you should check if anything else is missing, like calling these registers from the mainClass, etc.
  8. You're registering your BLOCKS array's elements, but when did you set it's values?
  9. When do you register your blocks, and why do you have yout BLOCKS array?
  10. Hi! Can someone tell me, if there's a event called after the player ate / drank something? Thanks!
  11. I think if you pre-make your itemStack and then you set it's meta withmyItemStack.setItemDamage(-the meta value you need-) then you can make it work with the FurnaceRecipes.instance().addSmeltingRecipe. This is my last idea.
  12. So I was half correct, and @diesieben07 was kinda correct too, thats great. Have fun playing!
  13. I think it's the mod creator's problem, not forge's, the original crafting bench does not have this bug.
  14. No, I tested my example, and I had a little mistake. You just need to put #getBlock() after #withProperty().
  15. That won't do anything. OP already explained this above. I was just saying that I made a bad example ?
  16. It only works if he wants a tileEntity, and he has everything needed in that tutorial. That's not what he asked for. Let's wait until he respond instead of copy pasting random code.
  17. If you use #getBlock() after a IBlockState, than everything stored in it, (like it's variant) is gone. I don't know how, but you need to find another way of doing this. Use FurnaceRecipes::addSmeltingRecipe(ItemStack, ItemStack, float). FurnaceRecipes.instance().addSmeltingRecipe(new ItemStack(BlockInit.ORE_OVERWORLD.getDefaultState().withProperty(...).getBlock), new ItemStack(Items.APPLE), 1);
  18. Hi! I added some recipes to my mod, and this one is weirdly not working: I just can't figure it out, why. Thanks for helping!
  19. As far as I see, the main problems are cause by enderIO and projectE, try removing them one by one. (I would try enderIO first)
×
×
  • Create New...

Important Information

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