Skip to content

Commit

Permalink
1.20.6 port
Browse files Browse the repository at this point in the history
  • Loading branch information
luxtracon committed Jun 6, 2024
1 parent 9de2125 commit 8ca868c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'net.neoforged.gradle.userdev' version '7.0.105'
id 'net.neoforged.gradle.userdev' version '7.0.133'
}

version = mod_version
Expand Down Expand Up @@ -94,6 +94,7 @@ dependencies {
// And its provides the option to then use net.minecraft as the group, and one of; client, server or joined as the module name, plus the game version as version.
// For all intends and purposes: You can treat this dependency as if it is a normal library you would use.
implementation "net.neoforged:neoforge:${neo_version}"
implementation "curse.maven:jade-324717:${jade_version}"

// Example optional mod dependency with JEI
// The JEI API is declared for compile time use, while the full JEI artifact is used at runtime
Expand Down
16 changes: 9 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@ org.gradle.debug=false

#read more on this at https://github.com/neoforged/NeoGradle/blob/NG_7.0/README.md#apply-parchment-mappings
# you can also find the latest versions at: https://parchmentmc.org/docs/getting-started
neogradle.subsystems.parchment.minecraftVersion=1.20.4
neogradle.subsystems.parchment.mappingsVersion=2024.04.14
neogradle.subsystems.parchment.minecraftVersion=1.20.6
neogradle.subsystems.parchment.mappingsVersion=2024.06.02
# Environment Properties
# You can find the latest versions here: https://projects.neoforged.net/neoforged/neoforge
# The Minecraft version must agree with the Neo version to get a valid artifact
minecraft_version=1.20.5
minecraft_version=1.20.6
# The Minecraft version range can use any release version of Minecraft as bounds.
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
# as they do not follow standard versioning conventions.
minecraft_version_range=[1.20.5,1.21)
minecraft_version_range=[1.20.6,1.21)
# The Neo version must agree with the Minecraft version to get a valid artifact
neo_version=20.5.21-beta
neo_version=20.6.110-beta
# The Neo version range can use any version of Neo as bounds
neo_version_range=[20.5,)
neo_version_range=[20.6,)
# The loader version range can only use the major version of FML as bounds
loader_version_range=[2,)

jade_version=5366595

## Mod Properties

# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
Expand All @@ -32,7 +34,7 @@ mod_name=Floralis
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT License
# The mod version. See https://semver.org/
mod_version=14.0.0
mod_version=15.0.0
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState

@Override
public void entityInside(BlockState pState, Level pLevel, BlockPos pPos, Entity pEntity) {
if (pEntity instanceof Ravager && EventHooks.getMobGriefingEvent(pLevel, pEntity)) {
if (pEntity instanceof Ravager && EventHooks.canEntityGrief(pLevel, pEntity)) {
pLevel.destroyBlock(pPos, true, pEntity);
}

Expand Down

0 comments on commit 8ca868c

Please sign in to comment.