Skip to content

Commit

Permalink
Update minigame to Minecraft 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 committed Nov 16, 2023
1 parent 62c5418 commit 0aa68e0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "fabric-loom" version "1.2.7"
id "fabric-loom" version "1.4.4"
id "maven-publish"
}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ mod_version = 1.0.0
org.gradle.jvmargs = -Xmx1G

# Versions
minecraft_version = 1.19.4
yarn_mappings = 1.19.4+build.2
loader_version = 0.14.19
fabric_version = 0.80.0+1.19.4
minecraft_version = 1.20.1
yarn_mappings = 1.20.1+build.10
loader_version = 0.14.24
fabric_version = 0.90.7+1.20.1

plasmid_version = 0.5+1.19.4-SNAPSHOT
plasmid_version = 0.5.100+1.20.1
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ private void shootSkullAt(Entity target) {
Vec3d skullPos = this.getSkullPos();
Vec3d direction = target.getPos().subtract(skullPos);

WitherSkullEntity skull = new WitherSkullEntity(this.world, this, direction.getX(), direction.getY(), direction.getZ());
WitherSkullEntity skull = new WitherSkullEntity(this.getWorld(), this, direction.getX(), direction.getY(), direction.getZ());
skull.setPos(skullPos.getX(), skullPos.getY(), skullPos.getZ());

if (this.world.getRandom().nextInt(1000) == 0) {
if (this.getWorld().getRandom().nextInt(1000) == 0) {
skull.setCharged(true);
}

this.world.spawnEntity(skull);
this.world.syncWorldEvent(null, WorldEvents.WITHER_SHOOTS, BlockPos.ofFloored(skullPos), 0);
this.getWorld().spawnEntity(skull);
this.getWorld().syncWorldEvent(null, WorldEvents.WITHER_SHOOTS, BlockPos.ofFloored(skullPos), 0);
}

protected Vec3d getSkullPos() {
Expand Down

0 comments on commit 0aa68e0

Please sign in to comment.