Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Potions of Glowing and Levitation. #1

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.6+build.3
loader_version=0.15.11

# Mod Properties
mod_version=1.0.0
mod_version=1.2.0
maven_group=ro.fishmc
archives_base_name=fishmc

Expand Down
18 changes: 18 additions & 0 deletions src/main/java/ro/fishmc/FishMC.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ public class FishMC implements ModInitializer {
StatusEffects.BLINDNESS,
3600,
0)));
public static final Potion GLOWING =
Registry.register(
Registries.POTION,
new Identifier("fishmc", "glowing"),
new Potion(
new StatusEffectInstance(
StatusEffects.GLOWING,
800,
0)));
public static final Potion LEVITATION =
Registry.register(
Registries.POTION,
new Identifier("fishmc", "levitation"),
new Potion(
new StatusEffectInstance(
StatusEffects.LEVITATION,
3600,
0)));
@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
Expand Down