mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
some changes
This commit is contained in:
parent
43c72ce1ba
commit
683956585f
2 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,7 @@ yarn_mappings=1.20.2+build.1
|
||||||
loader_version=0.14.22
|
loader_version=0.14.22
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0.3+1.20.2
|
mod_version=a1.1.0.0+1.20.2
|
||||||
maven_group=one.oth3r
|
maven_group=one.oth3r
|
||||||
archives_base_name=sit!
|
archives_base_name=sit!
|
||||||
|
|
||||||
|
|
|
@ -120,6 +120,7 @@ public class Events {
|
||||||
public static void setEntity(BlockPos pos, World world, Entity entity) {
|
public static void setEntity(BlockPos pos, World world, Entity entity) {
|
||||||
Block block = world.getBlockState(pos).getBlock();
|
Block block = world.getBlockState(pos).getBlock();
|
||||||
entity.setCustomName(Text.of(Sit.ENTITY_NAME));
|
entity.setCustomName(Text.of(Sit.ENTITY_NAME));
|
||||||
|
entity.setCustomNameVisible(false);
|
||||||
double hitBoxY = 0.5;
|
double hitBoxY = 0.5;
|
||||||
entity.updatePositionAndAngles(pos.getX() + 0.5, pos.getY()+.47, pos.getZ() + 0.5, 0, 0);
|
entity.updatePositionAndAngles(pos.getX() + 0.5, pos.getY()+.47, pos.getZ() + 0.5, 0, 0);
|
||||||
entity.setInvulnerable(true);
|
entity.setInvulnerable(true);
|
||||||
|
@ -192,6 +193,7 @@ public class Events {
|
||||||
entities.get(player).setRemoved(Entity.RemovalReason.DISCARDED);
|
entities.get(player).setRemoved(Entity.RemovalReason.DISCARDED);
|
||||||
entities.remove(player);
|
entities.remove(player);
|
||||||
}
|
}
|
||||||
|
//interactions entity to make the hitbox?
|
||||||
DisplayEntity.TextDisplayEntity entity = new DisplayEntity.TextDisplayEntity(EntityType.TEXT_DISPLAY,player.getServerWorld());
|
DisplayEntity.TextDisplayEntity entity = new DisplayEntity.TextDisplayEntity(EntityType.TEXT_DISPLAY,player.getServerWorld());
|
||||||
setEntity(pos,world,entity);
|
setEntity(pos,world,entity);
|
||||||
player.getServerWorld().spawnEntity(entity);
|
player.getServerWorld().spawnEntity(entity);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue