Code Monkey home page Code Monkey logo

Comments (3)

Exaxxion avatar Exaxxion commented on August 11, 2024

I'd like to get some more information to focus in on the underlying problem.

First, what version of CraftTweaker and the accompanying *Tweaker addons are you using?

Second, let's establish some context:
Are any other items registered under blockAethium in the ore dictionary?
Does this still happen if you specify the Aethium Block item directly rather than the ore dictionary bracket handler?
Does this occur just with Aethium recipes or is it reproducible with other recipes using oredict bracket handlers?
Does the recipe function properly if you use the vanilla crafting table shaped recipe function rather than the ExC one?

from extendedcrafting.

eutro avatar eutro commented on August 11, 2024

The issue is that Environmental Tech (and other mods apparently) register their items to the oredict after CraftTweaker scripts have run.

As the following script shows, <ore:blockAethium> does not contain any items when the script is run:

var blockAethium = <ore:blockAethium>;

blockAethium.add(<minecraft:cobblestone>); // test item

print("Printing <ore:blockAethium> items...");

for stack in blockAethium.items {
    print(stack.commandString);
}

print("Finished printing items.");

appears in the log with:

[INITIALIZATION][CLIENT][INFO] Adding Cobblestone to ore dictionary entry blockAethium
[INITIALIZATION][CLIENT][INFO] Printing <ore:blockAethium> items...
[INITIALIZATION][CLIENT][INFO] <minecraft:cobblestone>
[INITIALIZATION][CLIENT][INFO] Finished printing items.

This caused issues because matching items were resolved when the ingredient was constructed.

The solution was to use the overlooked CraftTweakerMC#getIngredient which does everything necessary.

from extendedcrafting.

Krutoy242 avatar Krutoy242 commented on August 11, 2024

Yeah, probably working fine now! Thanks!

from extendedcrafting.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.