[TUTORIAL] Rendering Entity in GUI

Started by Grimlock on

Topic category: User side tutorials

Last seen on 02:41, 2. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTORIAL] Rendering Entity in GUI
Wed, 08/16/2023 - 22:45 (edited)

So I haven't seen any tutorials on this topic, so here we are! If you don't know, there is a GUI feature that allows you to render a entity/player in a GUI!

a
Example of entity rendering

 

Now, to get started create a GUI and a procedure

In the procedure, put this code;

a

 

 

 

 

 

 

You can put whatever entity in the selection box. 

You can find the "static entity" block in the advanced tab, and the "return" block in flow control

(In terms of rendering a player, I'm not entirely sure how to do that at the moment.)

 

Now, in the GUI where you want your entity to be rendered, select the "Add Entity Model" button

a

 

 

 

 

 

 

 

 

 

 

 

Then in the "Display model entity provider" select your procedure from before

You can set the model scale to whatever you want, but just know that it can be a little weird at times if you make it huge

Also, make sure to tick "Follow mouse movement with rotation" so your entity follows where your mouse goes

 

And now if you test your GUI in-game, your entity will be rendered in a GUI!

a

Edited by Grimlock on Wed, 08/16/2023 - 22:45
Last seen on 14:06, 2. May 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To have a player model u…
Wed, 11/29/2023 - 15:45

To have a player model u just need to return Event/target entity

 

Last seen on 02:43, 26. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Every time I try this the…
Mon, 12/04/2023 - 18:27

Every time I try this the game crashes, no matter what entity I enter. I'm using version 2023.3. Any advice?

Last seen on 02:43, 26. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Scratch that, figured out…
Mon, 12/04/2023 - 18:40

Scratch that, figured out what was wrong. Is there any way to make armor render with the entity? Like making an armor stand wear a chestplate? I am attempting to backport the 1.20 Smithing mechanics and integrate it with my own smithing mechanics

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is there a way to return the…
Tue, 12/05/2023 - 01:26

is there a way to return the entity image on a GUI after you right click the creature?

trying to do here but all i render is the player lmao;

can i set the condition 'When player right click entity` then do that?

Last seen on 02:41, 2. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@AmosBirb one way you can…
Tue, 12/05/2023 - 02:50

@AmosBirb one way you can render something like that is to just create a custom mob with the armor on. The mob creation has a feature to add built in armor. You can then put in the custom mob

Last seen on 02:43, 26. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Grimlock gotcha. I suppose…
Tue, 12/12/2023 - 16:40

@Grimlock gotcha. I suppose that'll have to work lol, my main concern was the fact that I'm using it in a 1.19 backport of the 1.20 Smithing Mechanics so that'd be a lot of entities. Who know maybe I'll figure something out using custom entity AI.

Ty

Last seen on 07:20, 2. May 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks a lot  
Fri, 01/19/2024 - 09:12

thanks a lot