Comments (6)
Thanks for the quick response, I ended up fixing the script errors, but yeah having it spit out the errored line would be preferrable. Thanks for the quick response. Love the mod, as well as your Artisan Tables one
from advancedmortars.
I'm working on adding some checks to prevent the NPE you described. I am unable to fully replicate your problem (with the exact script you provided) because I don't have Silent's Gems or your custom ContentTweaker content.
In the meantime, I do notice that in some places you have <contenttweaker:white:dye>
and others <contenttweaker:white_dye>
. That might be the source of your problem.
CraftTweaker probably errors on parsing the <contenttweaker:white:dye>
and returns a null.
I'll see if I can't replicate the behavior using a bracket handler like that.
Did this error happen on a server?
Does running /ct syntax
show any errors?
from advancedmortars.
My theory was correct and I was able to replicate the problem you've described.
Using this script:
import mods.advancedmortars.Mortar;
import crafttweaker.item.IItemStack;
Mortar.addRecipe(["wood", "stone"], <minecraft:dye:2>, 10, [<minecraft:dye:white>]);
Crash:
https://gist.github.com/codetaylor/e64362a829e4c65b2c578b955e9c72f9
from advancedmortars.
Ok, this is better.
It will now fully load and display this in the console:
As well as display this in the crafttweaker.log
file:
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Building registry
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Successfully built item registry
[INITIALIZATION][CLIENT][INFO] Loading scripts
[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: mortar.zs}
[INITIALIZATION][CLIENT][ERROR] mortar.zs:5: Could not resolve <minecraft : dye : white>
[AVAILABLE][CLIENT][INFO] Altering mods.advancedmortars.Mortar Recipe(s) for <minecraft:dye:2>
[AVAILABLE][CLIENT][ERROR] Unknown input type: null
[SERVER_STARTED][CLIENT][INFO] Fixed the RecipeBook
from advancedmortars.
Fixed in 1.6.15
from advancedmortars.
Build 1.6.15 submitted to CurseForge.
from advancedmortars.
Related Issues (20)
- Recipes with no secondary outputs render empty secondary output in JEI
- [CraftTweaker] Output syntax connot be null HOT 7
- 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.