Skip to content

Commit

Permalink
Make CC tweaked compileOnly for now
Browse files Browse the repository at this point in the history
Doesn't work with recent Neoforge
  • Loading branch information
desht committed Jul 23, 2024
1 parent 3ae08c2 commit 219b466
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ dependencies {
compileOnly("vazkii.patchouli:Patchouli:${patchouli_version}:api")
runtimeOnly("vazkii.patchouli:Patchouli:${patchouli_version}")

implementation("curse.maven:cc-tweaked-282001:${cc_tweaked_curse_id}")
compileOnly("curse.maven:cc-tweaked-282001:${cc_tweaked_curse_id}")
// compileOnly("cc.tweaked:cc-tweaked-1.21-forge-api:${cc_tweaked_version}")
// runtimeOnly("cc.tweaked:cc-tweaked-1.21-forge:${cc_tweaked_version}")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import net.minecraft.world.level.ItemLike;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.material.Fluids;
import net.neoforged.fml.ModList;
import net.neoforged.neoforge.common.Tags;
import net.neoforged.neoforge.common.conditions.ModLoadedCondition;
import net.neoforged.neoforge.common.crafting.DataComponentIngredient;
Expand Down Expand Up @@ -305,14 +306,16 @@ protected void buildRecipes(RecipeOutput consumer) {
'P', ModItems.PRINTED_CIRCUIT_BOARD.get()
).save(consumer);

Item ccModem = BuiltInRegistries.ITEM.get(ResourceLocation.parse("computercraft:wireless_modem_normal"));
shaped(ModBlocks.DRONE_INTERFACE.get(), ModItems.PRINTED_CIRCUIT_BOARD.get(),
" U /MP /III",
'I', PneumaticCraftTags.Items.INGOTS_COMPRESSED_IRON,
'U', ModUpgrades.RANGE.get().getItem(),
'P', ModItems.PRINTED_CIRCUIT_BOARD.get(),
'M', ccModem
).save(consumer.withConditions(new ModLoadedCondition(ModIds.COMPUTERCRAFT)), RL("drone_interface"));
if (ModList.get().isLoaded(ModIds.COMPUTERCRAFT)) {
Item ccModem = BuiltInRegistries.ITEM.get(ResourceLocation.parse("computercraft:wireless_modem_normal"));
shaped(ModBlocks.DRONE_INTERFACE.get(), ModItems.PRINTED_CIRCUIT_BOARD.get(),
" U /MP /III",
'I', PneumaticCraftTags.Items.INGOTS_COMPRESSED_IRON,
'U', ModUpgrades.RANGE.get().getItem(),
'P', ModItems.PRINTED_CIRCUIT_BOARD.get(),
'M', ccModem
).save(consumer.withConditions(new ModLoadedCondition(ModIds.COMPUTERCRAFT)), RL("drone_interface"));
}

shaped(ModBlocks.ELECTROSTATIC_COMPRESSOR.get(), ModItems.TURBINE_ROTOR.get(),
"BPB/PRP/BCB",
Expand Down

0 comments on commit 219b466

Please sign in to comment.