Open SgtPunishment opened 9 years ago
I'm not sure but I've made some changes to the way shift clicking in Soul Forge GUI works, I need someone to test if it does what we want it to do.
Figure out how to use OreDict'ed blocks in the new rituals
First off, you'll need a class laid out similar to:
public Block block;
public int meta;
public BlockStack(Block block, int meta) {
this.block = block;
this.meta = meta;
}
Then:
public static BlockStack getOreDictBlock(String oreEntry) {
ItemStack oreStack = OreDictionary.getOres(oreEntry).get(0); // Gets the first registered entry for "entry" and returns an ItemStack for it.
Block block = Block.getBlockFromItem(oreStack.getItem()); // Get the block from the ItemStack
int meta = oreStack.getItemDamage(); // get the meta from the ItemStack
return new BlockStack(block, meta); // Return a new BlockStack with the needed information
}
Wherever you check blocks, you would then do similar to
BlockStack stack = getOreDictBlock("stone");
Block checkBlock = stack.block;
int checkMeta = stack.meta;
Or just change your checks to check against a BlockStack.
Edit: Just realized (12 hours later >.>) that this won't fully work. It will only accept the first BlockStack obtained from the OreDict entry as a valid block.
im not sure if this problem is already found but when i unload a chunk while the soul forge is working and i come back the progress resets.
I vaguely remember that being brought up a few months back. I could have sworn it was fixed.
Will make sure @SgtPunishment looks into it.
General TO DO LIST
Missing Page Generator- Waiting for Guide-API to updatesee below
Model TO DO List
Biome Generation TO DO List
"Power System" TO DO List
Tinkers Construct TO DO List
Guide-API TO DO List
Possible Ideas (Team feedback required, do not implement until agreed upon)