Skip to content

Commit

Permalink
mod version to Version+MC
Browse files Browse the repository at this point in the history
  • Loading branch information
rotgruengelb committed Oct 3, 2023
1 parent 43cb2a2 commit 7b9e851
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -7,7 +7,7 @@ minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.22
# Mod Properties
mod_version=1.0.0
mod_version=1.0.0+1.20.X
maven_group=net.rotgruengelb.quirl
archives_base_name=quirl
# Dependencies
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/net/rotgruengelb/quirl/Quirl.java
Expand Up @@ -11,11 +11,15 @@
public class Quirl implements ModInitializer {
public static final Logger LOGGER = LoggerFactory.getLogger("quirl");
public static final String MOD_ID = "quirl";
public static final Boolean MOD_TEST_MODE = false;

@Override
public void onInitialize() {

LOGGER.info("Hello Fabric world!");
CustomShovelInteract.addResult(Blocks.ACACIA_PLANKS.getDefaultState(), Blocks.DIRT.getDefaultState(), SoundEvents.ITEM_SHOVEL_FLATTEN, SoundCategory.BLOCKS);
LOGGER.info("Hi, im a quirl");
if (MOD_TEST_MODE) {
LOGGER.warn("quirl is in test mode! do not release with 'MOD_TEST_MOD = true'!");
CustomShovelInteract.addResult(Blocks.ACACIA_PLANKS.getDefaultState(), Blocks.DIRT.getDefaultState(), SoundEvents.ITEM_SHOVEL_FLATTEN, SoundCategory.BLOCKS);
}
}
}

0 comments on commit 7b9e851

Please sign in to comment.