[TUTORIAL] Rendering Entity in GUI

Started by Grimlock on

Topic category: User side tutorials

Active 4 months ago
Joined Jul 2022
Points:
437

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
[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
Active 1 month ago
Joined Nov 2023
Points:
111

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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

 

Active 1 month ago
Joined May 2022
Points:
418

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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?

Active 1 month ago
Joined May 2022
Points:
418

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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

Active 1 year ago
Joined Nov 2023
Points:
454

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 343
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?

Active 4 months ago
Joined Jul 2022
Points:
437

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
@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

Active 1 month ago
Joined May 2022
Points:
418

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
@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

Active 1 month ago
Joined Jan 2024
Points:
124

User statistics:

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

thanks a lot

 

Active 9 months ago
Joined Jun 2024
Points:
50

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
I cant see the imagens
Fri, 06/21/2024 - 02:16

I cant see the imagens

Active 10 months ago
Joined Jan 2023
Points:
275

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
I cant see any of the images…
Sat, 06/29/2024 - 13:47

I cant see any of the images they dont exist

Active 3 days ago
Joined Oct 2015
Points:
792

User statistics:

  • Modifications: 1
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
corrupted images 
Wed, 01/22/2025 - 11:41

corrupted images