Jump to content

Recommended Posts

Posted

Hallo

 

as i watched the youtube-channel of "ExplodingTNT", i saw the players "Pink Sheep" and "Purple Shep", who managed to turn into sheeps with wired moustaches in Minecraft.

 

So i wonder, how can i add an additional custom player-model into my mod?

I want to switch between the common player-model and one of my Angry Birds-models by hitting a key on my keyboard.

 

It should be still pussible to wear all pieces of armour, but chestplate, leggings and boots should be invisible, if worn.

 

I made a specific model for this with Blockbench:

For holding items, i added two invisible cubes (in separate folders) to the sides of the bird, because i want to recreate the effect from the Angry Birds toons, where the characters have things, they use, hovering near their sides (i like to call that telecinetic powers).

 

And is it possible to enter other player´s server-worlds with this special appearence, that other players can see it too?

Posted

i´m still waiting for help with this (for 1.13.2)

 

that entire model is much smaller than the common player model (just a cube with the zize of the commen head with tiny detail-elements) so i want to display holded items (especially the shield) in half of the size, they are on the common model.

 

and is there any application, that allows me to add some player-propertys to the model like telling it wich box-groups should be the arms (for holding items), head,...or setup custom animations for using items/shield,... ?

Posted

Subscribe to the RenderPlayerEvent.Pre, cancel the event, and render your model and items in hand.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted

Is it possible to have invisible parts as arms?

In the Angry Birds toons the birds can use objects with some kind of tenecinetic powers, what makes them hover next to their body.

And i want to have this effect here too.

Posted

Yes. After canceling the event, you can render the player yourself with whatever effect you want.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted (edited)

how do i make worn chestplates, leggings and boots from the armour-sets invisible for my custom model?

 

and how do i make a "switch player models with a key on the keyboard" funktion?

Edited by Drachenbauer
Posted (edited)
16 minutes ago, Drachenbauer said:

Sample, please

There isn't an example for everything.

You need to learn to read documentations.

Here is the forge documentation on events: https://mcforge.readthedocs.io/en/latest/events/intro/

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted (edited)

Now i got this together:

@SubscribeEvent
		public static void onRenderPlayer(RenderPlayerEvent.Pre event)
		{
			event.setCanceled(true);
		}

And how do i now render my model in there?

 

Do i need an entity-class for this?

Now i made one, that extends EntityPlayer.

 

But i still have no idea, how i tell it, wich parts of my model are the arms to attach items, if holding them

Edited by Drachenbauer
Posted

If you cancel the event you need to render the player’s model. I suggest having 2 subscribers. 1 in which you render the normal model at Priority=NORMAL, and another that only cancels the event, with priority=LOWEST

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

2 subscribe event methods with different priorities. The @SubscribeEvent accepts a priority 

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

@SubscribeEvent(priority=blah)

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

Look at how vanilla does it

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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