-
Posts
139 -
Joined
-
Last visited
Everything posted by Legenes
-
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!
-
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.
-
[1.12.2] Compatibility with other mods [Closed]
Legenes replied to Legenes's topic in Modder Support
Whoa! Thank you very much! -
[1.12.2] Compatibility with other mods [Closed]
Legenes replied to Legenes's topic in Modder Support
Thanks, now I only need a tutorial for waila/hwyla. -
Can someone help me with this problem? Transparent block
Legenes replied to michaelnaamloos's topic in Modder Support
It's not a folder, it's a method, and he highlighted it with the link. -
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!
-
[Mod] getItemFromBlock() return null. [SOLVED]
Legenes replied to MrSalimoc's topic in Modder Support
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.) -
[Mod] getItemFromBlock() return null. [SOLVED]
Legenes replied to MrSalimoc's topic in Modder Support
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. -
[Mod] getItemFromBlock() return null. [SOLVED]
Legenes replied to MrSalimoc's topic in Modder Support
You're registering your BLOCKS array's elements, but when did you set it's values? -
[Mod] getItemFromBlock() return null. [SOLVED]
Legenes replied to MrSalimoc's topic in Modder Support
When do you register your blocks, and why do you have yout BLOCKS array? -
Thanks!
-
If you want to.
-
Hi! Can someone tell me, if there's a event called after the player ate / drank something? Thanks!
-
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.
-
hey i'm having issues starting my minecraft server
Legenes replied to DodoAkaCadence's topic in Support & Bug Reports
So I was half correct, and @diesieben07 was kinda correct too, thats great. Have fun playing! -
I think it's the mod creator's problem, not forge's, the original crafting bench does not have this bug.
-
Oh. I'm stupid. Sorry.
-
No, I tested my example, and I had a little mistake. You just need to put #getBlock() after #withProperty().
-
That won't do anything. OP already explained this above. I was just saying that I made a bad example ?
-
Create Block that changes textures like End Portal Frame
Legenes replied to Mello's topic in Modder Support
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. -
Oops.. #getBlock was missing.
-
Oh, thanks!
-
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);
-
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!
-
hey i'm having issues starting my minecraft server
Legenes replied to DodoAkaCadence's topic in Support & Bug Reports
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)