Jump to content

Recommended Posts

Posted (edited)

I started a few days ago with Forge modding. (I've got some Java experience). 

So I decidet to make a little mod, which could change the model of items, based on their name. (example: I rename a diamondsword to legendary sword and then it would change the model).

And I would like that the mod also runs on vanilla servers, so it must be client based. ( --> It can't add new items)

 

I had success when I tried to replace the model completly, but that isn't that what I want.

ModelLoader.setCustomModelResourceLocation(diamondSword.getItem(), 0, new ModelResourceLocation(MODID + ":aspect_dragon_sword", "inventory"));

 

Now I have some questions:

1.How could I switch between different models?

2.Where should I put the code? (I'm a noob) 

 

Thank you guys!

 

Lg Megabaum

Edited by Megabaum
Posted

1.8.9 is so freaking old we don't support it any more.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

1.8.9 is no longer supported on this forum due to its age.

Please update to a modern version of Minecraft to receive support.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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