How do I see through a solid part of an entity?

Started by xolotel on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I see through a solid part of an entity?

I am currently creating a Titanfall mod for Forge 1.20.1. I am working on the Titans, and need a way to be able to see through the front while the Titan is still opaque from the outside, sort of a one-way glass type thing. In Titanfall 2, this is accomplished by turning the inside of the cockpit into a screen that shows the outside, but I have no clue how to do this in MCreator. Any help would be appreciated!

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah well the screen thing…
Thu, 07/04/2024 - 17:25

yeah well the screen thing is definitely not feasible lmao that would take a lot of work

i'd say on the entity tick update, detect which direction the player is facing, if player is facing the front of the mob then replace it with a mob with a hole in its chest, if facing the back then switch it out with a mob that's solid

but that wouldn't work for multiple players on a server

if you want to genuinely create the visual effect for client-side then that would take a lot of custom code

i guess you have to resort to this

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
damn
Fri, 07/05/2024 - 16:29

damn