Skip to content

Commit

Permalink
merge upstream fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothrazar committed Apr 6, 2024
2 parents f70421e + 3b12e5a commit f4af9e8
Show file tree
Hide file tree
Showing 66 changed files with 846 additions and 440 deletions.
File renamed without changes.
32 changes: 20 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,29 @@ dependencies {
// runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}-common:${jei_version}")
runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}")


// optional compat: many items useable in curios slots

implementation fg.deobf("top.theillusivec4.curios:curios-forge:${mc_version}-${curios_version}")

implementation fg.deobf("com.blamejared.crafttweaker:CraftTweaker-forge-${mc_version}:${crafttweaker_version}")


compileOnly fg.deobf("vazkii.botania:Botania:${mc_version}-${botania_version}-FORGE:api")
runtimeOnly fg.deobf("vazkii.botania:Botania:${mc_version}-${botania_version}-FORGE")

// optional compat: guidebook
compileOnly fg.deobf("vazkii.patchouli:Patchouli:${mc_version}-${patchouli_version}:api")
runtimeOnly fg.deobf("vazkii.patchouli:Patchouli:${mc_version}-${patchouli_version}")


// mods that have optional/soft integration
// runtimeOnly fg.deobf("curse.maven:liquid-blocks-301999:3873025")
// runtimeOnly fg.deobf("curse.maven:just-enough-effect-descriptions-jeed-532286:3944903")
// runtimeOnly fg.deobf("curse.maven:plain-grinder-452000:3653027")
// runtimeOnly fg.deobf("curse.maven:crafttweaker-239197:4657532")
/*
// runtimeOnly fg.deobf("curse.maven:farmers-delight-398521:3834150")
implementation fg.deobf("curse.maven:yungs-api-421850:4428184")
implementation fg.deobf("curse.maven:yungs-better-strongholds-465575:3778231")
implementation fg.deobf("curse.maven:mekanism-268560:3875976")
// implementation fg.deobf("curse.maven:absent-by-design-305840:3686851")
*/


}
Expand All @@ -104,11 +112,12 @@ repositories {
name = "mappings"
url 'https://dogforce-games.com/maven'
}
maven { url = "https://maven.theillusivec4.top/" }

maven { url 'https://dvs1.progwml6.com/files/maven/' }
maven { url 'https://maven.blamejared.com' }
maven { url = "https://modmaven.dev" }
// maven { url 'https://www.cursemaven.com' }
maven { url 'https://maven.theillusivec4.top/' }
maven { url 'https://maven.blamejared.com' }
maven { url 'https://modmaven.dev' }
maven { url 'https://www.cursemaven.com' }
}
// Example for how to get properties into the manifest for reading by the runtime..
jar {
Expand Down Expand Up @@ -166,7 +175,6 @@ task signJar(type: SignJar, dependsOn: jar) {
}



task cleanJar {
delete 'build/libs'
}
Expand Down
File renamed without changes.
30 changes: 24 additions & 6 deletions cyclic.toml → examples/config/cyclic.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
enabled = true

[cyclic.enchantment.beekeeper]
#Set false to stop enchantment from working
#Set false to disable enchantment
enabled = true

[cyclic.enchantment.experience_boost]
Expand Down Expand Up @@ -140,7 +140,7 @@
#Base perecentage chance to drop a head on kill
#Range: 1 ~ 99
percent = 20
#Set false to stop enchantment from working
#Set false to disable enchantment
enabled = true

[cyclic.enchantment.quickshot]
Expand All @@ -156,11 +156,13 @@
enabled = true

[cyclic.enchantment.curse]
#Set list of effects for Gloom enchant (cyclic:curse) to ignore and not use these
ignored = ["minecraft:bad_omen", "minecraft:nausea", "botania:clear"]
#(Gloom) Set false to stop enchantment from working
enabled = true

[cyclic.enchantment.auto_smelt]
#Set false to stop enchantment from working
#Set false to disable enchantment
enabled = true

[cyclic.enchantment.growth]
Expand Down Expand Up @@ -208,6 +210,8 @@
# Block specific configs
#####################################################################################
[cyclic.blocks]
# Allows the dimensional Transfer Nodes to cross dimensions (no chunk loading is done, you have to do that on your own); This affects blocks cyclic:wireless_energy, cyclic:wireless_item, cyclic:wireless_fluid, cyclic:wireless_transmitter; If you change it to false it will only work if the target is in the same dimension.
wireless_transfer_dimensional = true
#If true, then all potions marked as harmful/negative will be used in addition to the 'anti_beacon.potion_list' for cures and immunities (used by both sponge and artemisbeacon).
harmful_potions = true

Expand Down Expand Up @@ -370,15 +374,25 @@
#Range: 0 ~ 1000
water = 5

#terra_glass settings
[cyclic.blocks.terra_glass]
#ticks between growth cycles
#Range: 1 ~ 10000
timer = 100
#growth height below the glass
#Range: 0 ~ 32
height = 8

#experience_pylon settings
[cyclic.blocks.experience_pylon]
#Radius to pickup xp orbs
#Range: 1 ~ 64
radius = 16

#soundproofing settings
[cyclic.blocks.soundproofing]
#Radius to find and muffle sounds.
#Range: 1 ~ 128
#Radius of sound proofing (distance from each block that it will listen)
#Range: 1 ~ 16
radius = 6

[cyclic.blocks.cables]
Expand Down Expand Up @@ -427,6 +441,7 @@
#Range: 0 ~ 64000
energy_cost = 10

#Ender shelf settings
[cyclic.blocks.ender_shelf]
#Controller Max distance to search (using manhattan distance)
#Range: 1 ~ 256
Expand Down Expand Up @@ -459,12 +474,15 @@
fluid_cost = 100

[cyclic.blocks.terra_preta]
#Growth interval in ticks (100 would be every 5 seconds). Also affects terra glass
#Growth interval in ticks (100 would be every 5 seconds).
#Range: 1 ~ 64000
growth_interval = 100
#Chance that the crop will grow after the interval
#Range: 0.0 ~ 1.0
growth_chance = 0.5
#growth height above the soil
#Range: 2 ~ 32
height = 8

[cyclic.blocks.uncrafter]
#When searching for a recipe, does it ignore all NBT values (such as enchantments, RepairCost, Damage, etc). For example, if false it will not uncraft damaged or enchanted items
Expand Down
Binary file not shown.
15 changes: 15 additions & 0 deletions examples/scripts/crusher.zs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// https://docs.blamejared.com/
// https://www.curseforge.com/minecraft/mc-mods/crafttweaker
// use /ct dump fluids to see all fluid IDs

var crusher = <recipetype:cyclic:crusher>;

crusher.removeRecipe("cyclic:crusher/nylium_w");
crusher.removeRecipe("cyclic:crusher/end_crystal", "cyclic:crusher/netherrack");

// ID, input, output, RF per tick, ticks, bonus, percentage of bonus
crusher.addRecipe("castlevania", <item:minecraft:diamond>,<item:minecraft:iron_nugget>*2, 500, 3, <item:minecraft:dirt>*2, 50);


// no bonus, same as last number zero
crusher.addRecipe("castlevania2", <item:minecraft:obsidian>,<item:minecraft:sand>*2, 500, 300);
10 changes: 10 additions & 0 deletions examples/scripts/durability.zs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@


// change max damage aka durability aka number of tool uses like this

val glove = <item:cyclic:glove_climb>;
glove.maxDamage = 64;


val wand = <item:cyclic:elevation_wand>;
wand.maxDamage = 16;
14 changes: 14 additions & 0 deletions examples/scripts/generator_fluid.zs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// https://docs.blamejared.com/
// https://www.curseforge.com/minecraft/mc-mods/crafttweaker
// use /ct dump fluids to see all fluid IDs

var generator = <recipetype:cyclic:generator_fluid>;

generator.removeRecipe("cyclic:generator/generate_xp");
generator.removeRecipe("cyclic:generator/generate_lava");



generator.addRecipe("zoldo", <fluid:minecraft:water>*250, 5, 10);

generator.addRecipe("lava_tag", "minecraft:lava", 1000, 200, 500);
12 changes: 12 additions & 0 deletions examples/scripts/generator_item.zs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// https://docs.blamejared.com/
// https://www.curseforge.com/minecraft/mc-mods/crafttweaker
// use /ct dump fluids to see all fluid IDs

var generator = <recipetype:cyclic:generator_item>;

// recipe IDS, not item ids
generator.removeRecipe("cyclic:generator/generate_redstone");
generator.removeRecipe("cyclic:generator/generate_star");

// ID, input, output, RF per tick, ticks, bonus, percentage of bonus
generator.addRecipe("zelda", <item:minecraft:diamond_block>, 500, 120);
10 changes: 10 additions & 0 deletions examples/scripts/melter.zs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// https://docs.blamejared.com/
// https://www.curseforge.com/minecraft/mc-mods/crafttweaker
// use /ct dump fluids to see all fluid IDs

var melter = <recipetype:cyclic:melter>;

melter.removeRecipe("cyclic:melter/melter_snowwater");
melter.removeRecipe("cyclic:melter/melter_expflesh", "cyclic:melter/melter_expblaze");

melter.addRecipe("spruce_wayne", [<item:minecraft:sand>,<item:minecraft:spruce_trapdoor>], <fluid:cyclic:wax>*75, 500, 3);
2 changes: 2 additions & 0 deletions examples/scripts/remove_by_modid.zs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

craftingTable.removeByModid("cyclic");
21 changes: 21 additions & 0 deletions examples/scripts/solidifier.zs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// https://docs.blamejared.com/
// https://www.curseforge.com/minecraft/mc-mods/crafttweaker
// use /ct dump fluids to see all fluid IDs

var solidifier = <recipetype:cyclic:solidifier>;

solidifier.removeRecipe("cyclic:solidifier/candle_blue");
solidifier.removeRecipe("cyclic:solidifier/candle_red", "cyclic:solidifier/candle_yellow");

// this one is the exact fluid ID, not using tags
solidifier.addRecipe("megaman1", [<item:minecraft:sand>,<item:minecraft:birch_trapdoor>,<item:minecraft:sand>], <fluid:cyclic:honey>*100, <item:minecraft:stone_hoe>, 200, 8);

// next: string-tag format using strings instead of a fluid
// run /ct dump tag
// to see all registered fluid tags

solidifier.addRecipe("megaman2", [<item:minecraft:sand>,<item:minecraft:spruce_trapdoor>,<item:minecraft:sand>], "forge:wax", 100, <item:minecraft:iron_hoe>, 300, 100);

solidifier.addRecipe("megaman3", [<item:minecraft:sand>,<item:minecraft:oak_trapdoor>,<item:minecraft:sand>], "minecraft:lava", 100, <item:minecraft:iron_sword>, 300, 100);

solidifier.addRecipe("megaman4", [<item:minecraft:sand>,<item:minecraft:jungle_trapdoor>,<item:minecraft:sand>], "<fluid:minecraft:lava>", 5000, <item:minecraft:obsidian>, 300, 100);
8 changes: 7 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.daemon=false
# as needed run/server.properties : online-mode=false

curse_id=239286
mod_version=1.8.2
mod_version=1.8.3-SNAPSHOT

mc_version=1.19.2
forge_version=43.2.14
Expand All @@ -16,6 +16,12 @@ jei_version=11.4.0.285
curios_version=5.1.1.0
patchouli_version=77


botania_version=440
crafttweaker_version=10.1.55
# https://www.curseforge.com/minecraft/mc-mods/crafttweaker/files/5210437
#https://www.curseforge.com/minecraft/mc-mods/botania/files/4557912

# for eclipse.ini if needed
#-vm
#C:\Program Files\AdoptOpenJDK\jdk-16.0.1.9-hotspot\bin\javaw.exe
Expand Down
6 changes: 6 additions & 0 deletions scripts/clean_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

rm run/config/cyclic.toml
rm run/config/cyclic-client.toml

echo "configs reset"
4 changes: 4 additions & 0 deletions scripts/example_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cp run/config/cyclic.toml examples/config/cyclic.toml
cp run/config/cyclic-client.toml examples/config/cyclic-client.toml
2 changes: 1 addition & 1 deletion src/main/java/com/lothrazar/cyclic/block/BlockCyclic.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public BlockState rotate(BlockState state, LevelAccessor world, BlockPos pos, Ro
@SuppressWarnings("deprecation")
@Override
public InteractionResult use(BlockState state, Level world, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) {
if (hasFluidInteract) {
if (hasFluidInteract && player.getItemInHand(hand).isEmpty()) {
if (!world.isClientSide) {
BlockEntity tankHere = world.getBlockEntity(pos);
if (tankHere != null) {
Expand Down
Loading

0 comments on commit f4af9e8

Please sign in to comment.