Skip to content

Commit

Permalink
1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Mar 15, 2023
1 parent 6bff05e commit 6730502
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Expand Up @@ -2,18 +2,20 @@ name: Bug Report
description: Report an issue with supported versions of SkyblockUltimaTools
labels: [ bug ]
body:
- type: input
- type: dropdown
id: mc-version
attributes:
label: Minecraft version
placeholder: eg. 1.19
options:
- 1.18.2
- 1.19.4
validations:
required: true
- type: input
id: mod-version
attributes:
label: Skyblock Ultima Tools version
placeholder: eg. 1.19-1.0.0
placeholder: eg. 1.19.4-3.2.0
validations:
required: true
- type: input
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Expand Up @@ -4,14 +4,14 @@ org.gradle.daemon=false
# mod properties
modid=ultimatools
group=de.melanx
base_version=3.1
base_version=3.2

# dependencies
forge_version=1.19.3-44.0.30
mappings=sugarcane_2022.12.18-1.19.3
forge_version=1.19.4-45.0.1
#mappings=sugarcane_2022.12.18-1.19.3

# Upload properties
upload_versions=1.19.3
upload_versions=1.19.4
upload_release=release
modrinth_project=fM4ceeVu
curse_project=315068
Expand Down
Expand Up @@ -38,7 +38,7 @@ private void creativeModTab(CreativeModeTabEvent.Register event) {
event.registerCreativeModeTab(new ResourceLocation(MODID, "tab"), builder -> {
builder.title(Component.literal("Skyblock Ultima Tools"))
.icon(() -> new ItemStack(Registration.ultimaGod.get()))
.displayItems((enabledFeatures, output, hasPermissions) -> {
.displayItems((params, output) -> {
for (RegistryObject<Item> entry : Registration.ITEMS.getEntries()) {
output.accept(entry.get());
}
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/de/melanx/ultimatools/util/ToolEffects.java
Expand Up @@ -14,8 +14,6 @@
import net.minecraft.tags.BlockTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.damagesource.EntityDamageSource;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.entity.EntityType;
Expand Down Expand Up @@ -99,7 +97,7 @@ public static boolean spawnAnimal(Level level, Player player, InteractionHand ha

public static boolean applyMagicDamage(LivingEntity target, Player player) {
if (target.isAlive()) {
target.hurt(new EntityDamageSource(DamageSource.MAGIC.getMsgId(), player).bypassArmor().setMagic(), 60);
target.hurt(player.level.damageSources().indirectMagic(player, null), 60);
return true;
}
return false;
Expand Down Expand Up @@ -200,7 +198,7 @@ public static Function5<Level, Player, InteractionHand, BlockPos, Direction, Boo
public static boolean applyPotion(LivingEntity target, Player player) {
if (target.isAlive()) {
switch (player.getCommandSenderWorld().random.nextInt(5)) {
case 0 -> target.hurt(new EntityDamageSource(DamageSource.MAGIC.getMsgId(), player).bypassArmor().setMagic(), 10);
case 0 -> target.hurt(player.level.damageSources().indirectMagic(player, null), 10);
case 1 -> target.addEffect(new MobEffectInstance(MobEffects.POISON, 600));
case 2 -> target.addEffect(new MobEffectInstance(MobEffects.WITHER, 600));
case 3 -> target.addEffect(new MobEffectInstance(MobEffects.WEAKNESS, 600));
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/META-INF/mods.toml
@@ -1,5 +1,5 @@
modLoader="javafml"
loaderVersion="[44,)"
loaderVersion="[45,)"
issueTrackerURL="https://github.com/MelanX/ultimatools/issues/"
license="MIT License"

Expand All @@ -14,13 +14,13 @@ authors="MelanX"
[[dependencies.ultimatools]]
modId="forge"
mandatory=true
versionRange="[44,)"
versionRange="[45,)"
ordering="NONE"
side="BOTH"

[[dependencies.ultimatools]]
modId="minecraft"
mandatory=true
versionRange="[1.19.3, 1.20)"
versionRange="[1.19.4, 1.20)"
ordering="NONE"
side="BOTH"
6 changes: 3 additions & 3 deletions src/main/resources/pack.mcmeta
@@ -1,8 +1,8 @@
{
"pack": {
"description": "Skyblock Ultima Tools resources",
"pack_format": 12,
"forge:data_pack_format": 10,
"forge:resource_pack_format": 12
"pack_format": 13,
"forge:data_pack_format": 12,
"forge:resource_pack_format": 13
}
}

0 comments on commit 6730502

Please sign in to comment.