mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +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
|
||||
|
||||
# Mod Properties
|
||||
mod_version=1.0.3+1.20.2
|
||||
mod_version=a1.1.0.0+1.20.2
|
||||
maven_group=one.oth3r
|
||||
archives_base_name=sit!
|
||||
|
||||
|
|
|
@ -120,6 +120,7 @@ public class Events {
|
|||
public static void setEntity(BlockPos pos, World world, Entity entity) {
|
||||
Block block = world.getBlockState(pos).getBlock();
|
||||
entity.setCustomName(Text.of(Sit.ENTITY_NAME));
|
||||
entity.setCustomNameVisible(false);
|
||||
double hitBoxY = 0.5;
|
||||
entity.updatePositionAndAngles(pos.getX() + 0.5, pos.getY()+.47, pos.getZ() + 0.5, 0, 0);
|
||||
entity.setInvulnerable(true);
|
||||
|
@ -192,6 +193,7 @@ public class Events {
|
|||
entities.get(player).setRemoved(Entity.RemovalReason.DISCARDED);
|
||||
entities.remove(player);
|
||||
}
|
||||
//interactions entity to make the hitbox?
|
||||
DisplayEntity.TextDisplayEntity entity = new DisplayEntity.TextDisplayEntity(EntityType.TEXT_DISPLAY,player.getServerWorld());
|
||||
setEntity(pos,world,entity);
|
||||
player.getServerWorld().spawnEntity(entity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue