Haha cloister go bom
This commit is contained in:
parent
6b97acb3a3
commit
f6a2fa93f2
10 changed files with 37 additions and 8 deletions
|
@ -5,8 +5,14 @@ import com.swdteam.tardim.common.command.tardim.ICommand;
|
|||
import com.swdteam.tardim.tardim.TardimData;
|
||||
import com.swdteam.tardim.tardim.TardimManager;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.sounds.SoundSource;
|
||||
import net.minecraft.world.entity.player.Player;
|
||||
|
||||
import com.swdteam.tardim.common.init.TRDDimensions;
|
||||
import net.minecraft.world.level.Level;
|
||||
import su.a71.tardim_ic.tardim_ic.Registration;
|
||||
|
||||
//import static com.swdteam.common.command.tardim.CommandTardimBase.sendResponse;
|
||||
|
||||
public class CommandCloisterBell implements ICommand {
|
||||
|
@ -17,6 +23,18 @@ public class CommandCloisterBell implements ICommand {
|
|||
if (data != null) {
|
||||
if (data.hasPermission(player)) {
|
||||
try {
|
||||
Level lvl = player.getLevel();
|
||||
if (!lvl.isClientSide) {
|
||||
lvl.playSound(
|
||||
null,
|
||||
pos,
|
||||
Registration.CLOISTER_SOUND_EVENT,
|
||||
SoundSource.BLOCKS,
|
||||
1.5f,
|
||||
1f
|
||||
);
|
||||
}
|
||||
|
||||
CommandTardimBase.sendResponse(player, "<Insert Cloister bell>", CommandTardimBase.ResponseType.COMPLETE, source);
|
||||
} catch (Exception var9) {
|
||||
CommandTardimBase.sendResponse(player, "There was an error", CommandTardimBase.ResponseType.FAIL, source);
|
||||
|
|
|
@ -9,6 +9,6 @@ import su.a71.tardim_ic.tardim_ic.command.CommandModemTransmit;
|
|||
public class CommandInit {
|
||||
public static void init() {
|
||||
CommandManager.register(new CommandModemTransmit());
|
||||
//CommandManager.register(new CommandCloisterBell());
|
||||
CommandManager.register(new CommandCloisterBell());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue