Problems with Block Entity Render code

Started by DragoKane on

Topic category: Advanced modding

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problems with Block Entity Render code
Sat, 04/22/2023 - 18:42 (edited)

I tried to make some custom code for Block Entity Renderer and there some issues with this code

protected void onContentsChanged(int slot) {
setChanged();
if(!level.isClientSide()) {
ModMessages.sendToClients(new ItemStackSyncS2CPacket(this, worldPosition));
}
}

 
Edited by DragoKane on Sat, 04/22/2023 - 18:42