Jump to content

PRYtheSheep

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Earth
  • Personal Text
    I bang my head against the keyboard every time I code

PRYtheSheep's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. The amount of offset seems to depend on the velocity of the entity, giving myself speed 99, the offset is greater when I'm running compared to crouching. Anyone have any ideas
  2. Hi, I am trying to render the bounding box of an entity with the code below. However, the rendered bounding box seems to be leading the actual bounding box. Is there something I'm missing out? https://imgur.com/gallery/KLQvwPy
  3. I figured that the Block Entity Renderer is client side only and changing the entity variables won't work. I added in packet handling to send a packet from client to server. ModMessages class Packets class The following line is called after changes is made to entity.facing in the renderer class to update the server side ModMessages.sendToServer(new PRYBlockRendererC2SPacket(entity.facing, entity.getBlockPos()));
  4. Hi, I am trying to modify a block entity's variable from its block entity renderer class. The variable facing is direction of the entity in degrees. The renderer class access the variable facing and rotates it to face towards the entity it is tracking. However, the changes are not reflected in the block entity class. Printing out entity.facing to console in the block entity renderer class displays the correct output in degrees but printing out facing in the block entity class shows it is stuck at -1. I figure it might be something to do with renderers being client side, if so, could someone point me in the right direction? Thanks Block Entity Block entity renderer
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.