Skip to content

Commit

Permalink
update to 1.20, make froges fertile again
Browse files Browse the repository at this point in the history
  • Loading branch information
gliscowo committed Jun 8, 2023
1 parent 639515c commit 298e67b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_base_version=1.19.3
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.4
loader_version=0.14.11
minecraft_base_version=1.20
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.21
# Mod Properties
mod_version=0.1.0
maven_group=io.wispforest
archives_base_name=delightful-froge
# Dependencies
# check this on https://fabricmc.net/develop
fabric_version=0.69.1+1.19.3
fabric_version=0.83.0+1.20
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ protected FrogEntityMixin(EntityType<? extends MobEntity> entityType, World worl

@Override
protected ActionResult interactMob(PlayerEntity player, Hand hand) {
if (player.isSneaking() || this.getVariant() != DelightfulFroge.FROGE) return ActionResult.PASS;
if (this.world.isClient) {
if (player.isSneaking() || !player.getStackInHand(hand).isEmpty() || this.getVariant() != DelightfulFroge.FROGE) return super.interactMob(player, hand);
if (this.getWorld().isClient) {
for (int i = 0; i < 5; i++) {
double x = this.getX() + (this.random.nextDouble() - .5);
double y = this.getY() + (this.random.nextDouble() - .5) + .25;
double z = this.getZ() + (this.random.nextDouble() - .5);

this.world.addParticle(ParticleTypes.HEART, x, y, z, 0, 0, 0);
this.world.addParticle(ParticleTypes.WAX_ON, x, y + .4, z, this.random.nextDouble() * 2.5, this.random.nextDouble() * 2.5, this.random.nextDouble() * 2.5);
this.getWorld().addParticle(ParticleTypes.HEART, x, y, z, 0, 0, 0);
this.getWorld().addParticle(ParticleTypes.WAX_ON, x, y + .4, z, this.random.nextDouble() * 2.5, this.random.nextDouble() * 2.5, this.random.nextDouble() * 2.5);
}

this.usingTongueAnimationState.start(this.age);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"depends": {
"fabricloader": "*",
"fabric": "*",
"minecraft": "1.19.x"
"minecraft": "1.20.x"
},

"custom": {
Expand Down

0 comments on commit 298e67b

Please sign in to comment.