Everything posted by Legenes
-
[1.14.4] Best way to sync progress in tile entity.
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!
-
[1.14.4] Remove a vanilla loot pool
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]
Whoa! Thank you very much!
-
[1.12.2] Compatibility with other mods [Closed]
Thanks, now I only need a tutorial for waila/hwyla.
-
Can someone help me with this problem? Transparent block
It's not a folder, it's a method, and he highlighted it with the link.
-
[1.12.2] Compatibility with other mods [Closed]
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]
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]
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]
You're registering your BLOCKS array's elements, but when did you set it's values?
-
[Mod] getItemFromBlock() return null. [SOLVED]
When do you register your blocks, and why do you have yout BLOCKS array?
-
[1.12.2] Searching for an event [Closed]
Thanks!
-
Bug/Duplicate on craft tables 1.12.2
If you want to.
-
[1.12.2] Searching for an event [Closed]
Hi! Can someone tell me, if there's a event called after the player ate / drank something? Thanks!
-
[1.12.2] Problem with Smelting for OreVariants
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
So I was half correct, and @diesieben07 was kinda correct too, thats great. Have fun playing!
-
Bug/Duplicate on craft tables 1.12.2
I think it's the mod creator's problem, not forge's, the original crafting bench does not have this bug.
-
[1.12.2] Problem with Smelting for OreVariants
Oh. I'm stupid. Sorry.
-
[1.12.2] Problem with Smelting for OreVariants
No, I tested my example, and I had a little mistake. You just need to put #getBlock() after #withProperty().
-
[1.12.2] Problem with Smelting for OreVariants
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
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.
-
[1.12.2] Problem with Smelting for OreVariants
Oops.. #getBlock was missing.
-
[1.12.2] Recipe isn't working. [Closed]
Oh, thanks!
-
[1.12.2] Problem with Smelting for OreVariants
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);
-
[1.12.2] Recipe isn't working. [Closed]
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
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)
IPS spam blocked by CleanTalk.