Skip to content

Commit

Permalink
backport support for axolotl of "Caves and Cliffs Mod, 1.17 concept"
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed May 28, 2021
1 parent bee7ed4 commit 481aeba
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

mod_version=2.6.0
mod_version=2.6.1
minecraft_version=1.15.2

forge_version=1.15.2-31.1.75
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package cech12.ceramicbucket.compat;

import cech12.ceramicbucket.api.data.ObtainableEntityType;
import net.minecraft.fluid.Fluids;
import net.minecraft.tags.FluidTags;
import net.minecraft.util.ResourceLocation;

import java.util.ArrayList;
import java.util.List;

public class CavesAndCliffs117ConceptCompat extends ModCompat.Mod implements ModCompat.EntityTypeObtainingMod {

private final List<ObtainableEntityType> obtainableEntityTypes = new ArrayList<>();

public CavesAndCliffs117ConceptCompat() {
super("caves_and_cliffs");
this.obtainableEntityTypes.add(new ObtainableEntityType.Builder(new ResourceLocation(this.name, "axolotl"), Fluids.WATER).addFluidTag(FluidTags.WATER).build());
}

@Override
public List<ObtainableEntityType> getObtainableEntityTypes() {
return this.obtainableEntityTypes;
}

}
1 change: 1 addition & 0 deletions src/main/java/cech12/ceramicbucket/compat/ModCompat.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class ModCompat {
new MinecraftCompat(),
new AquacultureCompat(),
new AxolotlCompat(),
new CavesAndCliffs117ConceptCompat(),
new CombustiveFishingCompat(),
new MilkAllTheMobs(),
new QuarkCompat(),
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 481aeba

Please sign in to comment.