Updated version, fixed 1.21.4
This commit is contained in:
parent
67db9798d8
commit
24c15ffb7b
|
|
@ -28,6 +28,7 @@ import net.minecraft.nbt.CompoundTag;
|
||||||
import net.minecraft.nbt.NbtOps;
|
import net.minecraft.nbt.NbtOps;
|
||||||
import net.minecraft.nbt.NbtUtils;
|
import net.minecraft.nbt.NbtUtils;
|
||||||
import net.minecraft.nbt.Tag;
|
import net.minecraft.nbt.Tag;
|
||||||
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
import net.minecraft.world.entity.AreaEffectCloud;
|
import net.minecraft.world.entity.AreaEffectCloud;
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
import net.minecraft.world.entity.EntitySpawnReason;
|
import net.minecraft.world.entity.EntitySpawnReason;
|
||||||
|
|
@ -96,7 +97,7 @@ public class CarryOnData {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBlock(BlockState state, @Nullable BlockEntity tile)
|
public void setBlock(BlockState state, @Nullable BlockEntity tile, ServerPlayer player, BlockPos pos)
|
||||||
{
|
{
|
||||||
this.type = CarryType.BLOCK;
|
this.type = CarryType.BLOCK;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ public class PickupHandler {
|
||||||
player.getServer().getCommands().performPrefixedCommand(player.getServer().createCommandSourceStack(), "/execute as " + player.getGameProfile().getName() + " run " + cmd);
|
player.getServer().getCommands().performPrefixedCommand(player.getServer().createCommandSourceStack(), "/execute as " + player.getGameProfile().getName() + " run " + cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
carry.setBlock(state, blockEntity);
|
carry.setBlock(state, blockEntity, player, pos);
|
||||||
|
|
||||||
level.removeBlockEntity(pos);
|
level.removeBlockEntity(pos);
|
||||||
level.removeBlock(pos, false);
|
level.removeBlock(pos, false);
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ jarJar.enable()
|
||||||
build.dependsOn tasks.jarJar
|
build.dependsOn tasks.jarJar
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
mappings channel: 'parchment', version: "${parchment_mappings}"
|
mappings channel: 'official', version: "1.21.4"
|
||||||
copyIdeResources = true
|
copyIdeResources = true
|
||||||
reobf = false
|
reobf = false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
package tschipp.carryon.events;
|
package tschipp.carryon.events;
|
||||||
|
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
import net.minecraft.world.InteractionResult;
|
import net.minecraft.world.InteractionResult;
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
|
|
@ -147,9 +148,9 @@ public class CommonEvents
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onDatapackRegister(AddReloadListenerEvent event)
|
public static void onDatapackRegister(AddServerReloadListenersEvent event)
|
||||||
{
|
{
|
||||||
event.addListener(new ScriptReloadListener());
|
event.addListener(ResourceLocation.fromNamespaceAndPath(Constants.MOD_ID, "scripts"), new ScriptReloadListener());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
|
|
|
||||||
|
|
@ -12,22 +12,22 @@ credits=
|
||||||
description=Carry On is a simple mod that improves game interaction by allowing players to pick up, carry, and place single block Tile Entities using only their empty hands.
|
description=Carry On is a simple mod that improves game interaction by allowing players to pick up, carry, and place single block Tile Entities using only their empty hands.
|
||||||
minecraft_version_range=[1.21.4, 1.22)
|
minecraft_version_range=[1.21.4, 1.22)
|
||||||
# Forge
|
# Forge
|
||||||
forge_version=54.0.12
|
forge_version=54.1.3
|
||||||
forge_loader_version_range=[54,)
|
forge_loader_version_range=[54,)
|
||||||
forge_version_range=[54,)
|
forge_version_range=[54,)
|
||||||
parchment_mappings=2024.12.29-1.21.4
|
parchment_mappings=2025.03.23-1.21.4
|
||||||
//forge_ats_enabled=true
|
//forge_ats_enabled=true
|
||||||
|
|
||||||
# Fabric
|
# Fabric
|
||||||
fabric_version=0.113.0+1.21.4
|
fabric_version=0.119.2+1.21.4
|
||||||
fabric_loader_version=0.16.9
|
fabric_loader_version=0.16.13
|
||||||
parchment_mappings_fabric=1.21.4:2024.12.29
|
parchment_mappings_fabric=1.21.4:2025.03.23
|
||||||
|
|
||||||
# Neoforge
|
# Neoforge
|
||||||
neoforge_version=21.4.47-beta
|
neoforge_version=21.4.132
|
||||||
neoforge_loader_version_range=[4,)
|
neoforge_loader_version_range=[4,)
|
||||||
neogradle.subsystems.parchment.minecraftVersion=1.21.4
|
neogradle.subsystems.parchment.minecraftVersion=1.21.4
|
||||||
neogradle.subsystems.parchment.mappingsVersion=2024.12.29
|
neogradle.subsystems.parchment.mappingsVersion=2025.03.23
|
||||||
|
|
||||||
|
|
||||||
# Gradle
|
# Gradle
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user