-
Posts
588 -
Joined
-
Last visited
Everything posted by shadowfacts
-
Sort through the list and check the output to remove the one you want. Psuedo-code: List<IRecipe> toRemove; CraftingManager.getInstance().getRecipeList().stream().filter(recipe -> recipe.getOutput.equals(yourThingy)).forEach(toRemove::add); toRemove.stream().forEach(CraftingManager.getInstance().getRecipeList()::remove);
-
You could try using the FMLMissingMappings event to automatically replace any instances of your old blocks/items with the new ones.
-
Is this in a normal env or a deobfuscated one? And is this problem happening because of a mod you wrote?
-
There are a _huge_ number of existing, established launchers and a great number of them allow anyone to upload packs. Use one of those. Minecraft is weird and finicky and it is far more effort to create your own launcher than use an existing one. I know because I built the Temporal Reality one, and I didn't even write the launching code myself, I used a library.
-
[1.8][SOLVED]How do I set up my workspace for IntelliJ?
shadowfacts replied to NovaViper's topic in Modder Support
To setup a project SDK you need to go to the first tab of the Project Structure window (under the File menu). In the first tab there is a dropdown that is used to select which JDK you want to use. If you haven't used IntelliJ before, it has no knowledge of any JDKs installed on your computer. Press the New... button and select the home of the JDK installation you wish to use for your project. -
Side note: You don't need an IFMLLoadingPlugin to use an Access Transformer.
-
crafting and smelting problems [1.7.10]
shadowfacts replied to Joeyalbo007's topic in Modder Support
Side note: You don't need to use an Object[], you can just pass them directly to the method. -
Why on (or off) Earth would you want a lang file in your config?!
-
[Solved] Fluid in IFluidHandler not saving
shadowfacts replied to shadowfacts's topic in Modder Support
[me=shadowfacts]facedesks[/me] I fixed it! I can't believe that something so simple and obvious cause this. -
[Solved] Fluid in IFluidHandler not saving
shadowfacts replied to shadowfacts's topic in Modder Support
Nope -
[Solved] Fluid in IFluidHandler not saving
shadowfacts replied to shadowfacts's topic in Modder Support
Unfortunately, this has not fixed the problem. I should clarify that at the end of the readFromNBT method, my TE has all the correct values, at some point after that they are lost. -
[1.7.10] Question about sending RF out of storage
shadowfacts replied to IvanTune's topic in Modder Support
If you want other energy using blocks to be able to actively pull from your solar panel, your current implementation will work fine. If you want your solar panel to actively push into adjacent RF accepting blocks, you will need to add some code. In the updatEntity method of your TE you will need to iterate over all the valid directions, and for each direction, check if the tile entity is A) not null, B) an IEnergyReceiver, and C) can connect on that side. If all of these conditions are true, you can call receiveEnergy on the TileEntity with the correct amount of energy. Side note: If you wanted to improve upon this implementation, you could only check 1 direction every tick (instead of all 6 every tick) to improve on server-side performance a bit. Example: @Override public void updateEntity() { // generate if (storage.getEnergyStored() > 0) { // is there energy to send for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) { TileEntity te = world.getTileEntity(xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ); if (te instanceof IEnergyReceiver) { IEnergyReceiver receiver = (IEnergyReceiver)te; int toExtract = receiver.receiveEnergy(dir.getOpposite(), extractEnergy(dir, MAX_EXTRACT, true), false); extractEnergy(dir, toExtract, false); } } } } -
I am currently making a fairly simple mod, it adds only one thing, barrels for liquid storage. It is functionally complete except for one, very important, bug. After I leave and re-enter the world, the fluid has not saved. I've confirmed that at the the end of writeToNBT and readFromNBT the tag compound does contain all the correct values, however, the fluid still is not restored on world load. My code is here on GitHub, any help/advice that anyone can offer would be greatly appreciated.
-
Block.blocksList and Blocks.blocksList don't work?
shadowfacts replied to NightTerror6's topic in Modder Support
You don't need to replace the vanilla block, you can just modify it. Blocks.log.setRequiresTool(); -
It is a hidden folder (it starts with a . ) so it isn't visible in Finder by default. You can either enable viewing hidden folders, use Cmd-Shift-G to go to the folder (~/.gradle/) or just use the Terminal application.
-
[1.7.2] I want right click blockchest during the sneak.
shadowfacts replied to mrsunz's topic in Modder Support
Inside of your last if statement, cancel the event with event.setCanceled(true). -
[1.7.10] bytecode doesn't seem to match sourcecode
shadowfacts replied to kauan99's topic in Modder Support
There is a very handy plugin for IntelliJ IDEA called ASM Bytecode Outline which allows you to view the ASM and bytecode versions of classes inside IDEA. -
VikeStep did a very good which not only explains how to use ASM in the context of Minecraft modding, but also explains a lot of things about the JVM that you should understand before using ASM.
-
Erm, diesieben, ItemArmour extends ItemArmor. There's a u in one and not the other.
-
Why do you want to make a core mod? Core mods have the potential to completely break everything and should only be used as a last resort.
-
1. You have to show your code. 2. You have a method calls itself that calls itself that calls itself that calls itself that calls itself, ad infinitum. This is causing the StackOverflowError because you are continually adding things to the stack but never removing them. Side note, Failender, it's a different problem, 1 problem per thread.
-
[1.7.2] I want right click blockchest during the sneak.
shadowfacts replied to mrsunz's topic in Modder Support
Wat. Do you mean you want to intercept when the chest is right-clicked? Your chest? The vanilla chest?