home_sweet_home

a mod to set your home with one command

File Details

home sweet home(sethome) mod 1.1.1 alpha

  • A
  • Mar 29, 2022
  • 644.38 KB
  • 88
  • 1.17.1

File Name

home_sweet_home_mod_1.17.1.jar

Supported Versions

  • 1.17.1

package: you project


import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.Entity;
import net.minecraft.network.chat.TextComponent;

import net.mcreator.home.network.HomeModVariables;

public class SethomeWennderBefehlAusgefuhrtWirdProcedure {
public static void execute(LevelAccessor world, Entity entity) {
if (entity == null)
return;
HomeModVariables.WorldVariables.get(world).x = entity.getX();
HomeModVariables.WorldVariables.get(world).syncData(world);
HomeModVariables.WorldVariables.get(world).y = entity.getY();
HomeModVariables.WorldVariables.get(world).syncData(world);
HomeModVariables.WorldVariables.get(world).z = entity.getZ();
HomeModVariables.WorldVariables.get(world).syncData(world);
if (entity instanceof Player _player && !_player.level.isClientSide())
_player.displayClientMessage(new TextComponent("\u00A72your home has been set successfully"), (false));
}
}