Skip to content

Commit

Permalink
1.21
Browse files Browse the repository at this point in the history
BUILD: Bumped Minecraft to 1.21
Signed-off-by: Superkat32 <superkat1806@gmail.com>
  • Loading branch information
Superkat32 committed Jun 13, 2024
1 parent d884122 commit c70b767
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.3
minecraft_version=1.21
yarn_mappings=1.21+build.1
loader_version=0.15.11

# Mod Properties
mod_version = 1.2.3-1.20.x
mod_version = 1.2.3-1.21.0
maven_group = net.superkat
archives_base_name = explosive-enhancement

# Dependencies
fabric_version=0.99.0+1.20.6
modmenu_version=10.0.0-beta.1
yacl_version=3.4.4+1.20.6-fabric
fabric_version=0.100.1+1.21
modmenu_version=11.0.0-beta.1
yacl_version=3.5.0+1.21-fabric
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ public class ExplosiveEnhancement implements ModInitializer {

@Override
public void onInitialize() {
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "blastwave"), BLASTWAVE);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "fireball"), FIREBALL);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "blank_fireball"), BLANK_FIREBALL);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "smoke"), SMOKE);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "bubble"), BUBBLE);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "shockwave"), SHOCKWAVE);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "blank_shockwave"), BLANK_SHOCKWAVE);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "underwaterblastwave"), UNDERWATERBLASTWAVE);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "sparks"), SPARKS);
Registry.register(Registries.PARTICLE_TYPE, new Identifier(MOD_ID, "underwatersparks"), UNDERWATERSPARKS);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "blastwave"), BLASTWAVE);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "fireball"), FIREBALL);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "blank_fireball"), BLANK_FIREBALL);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "smoke"), SMOKE);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "bubble"), BUBBLE);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "shockwave"), SHOCKWAVE);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "blank_shockwave"), BLANK_SHOCKWAVE);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "underwaterblastwave"), UNDERWATERBLASTWAVE);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "sparks"), SPARKS);
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "underwatersparks"), UNDERWATERSPARKS);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ public void buildGeometry(VertexConsumer buffer, Camera camera, float ticks) {
int light = this.getBrightness(ticks);

// Render the top faces
buffer.vertex(vector3fs[0].x(), vector3fs[0].y(), vector3fs[0].z()).texture(f8, f6).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[1].x(), vector3fs[1].y(), vector3fs[1].z()).texture(f8, f5).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[2].x(), vector3fs[2].y(), vector3fs[2].z()).texture(f7, f5).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[3].x(), vector3fs[3].y(), vector3fs[3].z()).texture(f7, f6).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[0].x(), vector3fs[0].y(), vector3fs[0].z()).texture(f8, f6).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[1].x(), vector3fs[1].y(), vector3fs[1].z()).texture(f8, f5).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[2].x(), vector3fs[2].y(), vector3fs[2].z()).texture(f7, f5).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[3].x(), vector3fs[3].y(), vector3fs[3].z()).texture(f7, f6).color(this.red, this.green, this.blue, this.alpha).light(light);

// Render the underside faces
buffer.vertex(vector3fs[3].x(), vector3fs[3].y(), vector3fs[3].z()).texture(f7, f6).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[2].x(), vector3fs[2].y(), vector3fs[2].z()).texture(f7, f5).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[1].x(), vector3fs[1].y(), vector3fs[1].z()).texture(f8, f5).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[0].x(), vector3fs[0].y(), vector3fs[0].z()).texture(f8, f6).color(this.red, this.green, this.blue, this.alpha).light(light).next();
buffer.vertex(vector3fs[3].x(), vector3fs[3].y(), vector3fs[3].z()).texture(f7, f6).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[2].x(), vector3fs[2].y(), vector3fs[2].z()).texture(f7, f5).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[1].x(), vector3fs[1].y(), vector3fs[1].z()).texture(f8, f5).color(this.red, this.green, this.blue, this.alpha).light(light);
buffer.vertex(vector3fs[0].x(), vector3fs[0].y(), vector3fs[0].z()).texture(f8, f6).color(this.red, this.green, this.blue, this.alpha).light(light);
}

@Override
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 @@ -34,7 +34,7 @@
"depends": {
"fabricloader": ">=0.14.8",
"fabric-api": "*",
"minecraft": ">=1.20.0",
"minecraft": ">=1.21",
"java": ">=21"
},
"suggests": {
Expand Down

0 comments on commit c70b767

Please sign in to comment.