Comments (7)
You're going to have to give me more information.
from advancedmortars.
For example:
Mortar.addRecipe(["wood", "stone", "iron", "diamond"], null, 1, <minecraft:diamond>, 0.5, [<minecraft:cobblestone>]);
This will cause crash when launching
from advancedmortars.
So what you're trying to do is declare a recipe that has no output except the chanced output?
from advancedmortars.
Yes maybe this is not a good way to declare. A map with itemstack and chance could be better.
from advancedmortars.
Reproduced:
Caused by: java.lang.IllegalArgumentException: stack cannot be null
at crafttweaker.mc1120.item.MCItemStack.<init>(MCItemStack.java:39) ~[CraftTweaker2-MC1120-Main-1.12-4.0.10.306.jar:?]
at com.codetaylor.mc.advancedmortars.modules.mortar.integration.crafttweaker.mtlib.LogHelper.getStackDescription(LogHelper.java:78) ~[advanced-mortars_main/:?]
at com.codetaylor.mc.advancedmortars.modules.mortar.integration.crafttweaker.ZenMortar$Add.getRecipeInfo(ZenMortar.java:170) ~[advanced-mortars_main/:?]
at com.codetaylor.mc.advancedmortars.modules.mortar.integration.crafttweaker.mtlib.BaseUndoable.describe(BaseUndoable.java:30) ~[advanced-mortars_main/:?]
[...]
from advancedmortars.
Okay, I've patched it to work around this issue. I plan to iterate on this mod sometime soon and I will most likely improve the CraftTweaker recipe integration to allow a defined number of picks from a weighted pool for recipe results (or something along those lines). It should handle null
as a value for the main output now, but I can't guarantee that there won't be any unexpected behavior as I didn't have that use case in mind when I initially designed it.
I will look into this more soon. Thank you for bringing it to my attention.
from advancedmortars.
Fixed in 1.12.2-1.6.18
from advancedmortars.
Related Issues (20)
- Recipes with no secondary outputs render empty secondary output in JEI
- question HOT 1
- Log Output JEI Support HOT 5
- Support CraftTweaker's IngredientOr HOT 1
- Show durability bar on held mortar
- Custom Mortars HOT 1
- The mortar doesn't appear to respect NBT tags HOT 2
- Pestles are twitching when the camera moves HOT 2
- not been able to install via twitch HOT 3
- Advanced Mortars HOT 2
- Mortar item textures HOT 2
- Leaking some GL state with Tough as Nails HOT 2
- Jei weird interaction HOT 1
- Add in Gold Mortar HOT 4
- [Suggestion] Require water for water-based recipes HOT 2
- [Suggestion] Add custom mortars HOT 1
- [Suggestion] Add config option to switch between item and model for mortar textures
- Recipes using multiples of an item are not possible without having full stacks. HOT 1
- Items with NBT unable be placed into mortar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advancedmortars.