Jump to content

[1.6.4]Custom weapon sizes


Gleech

Recommended Posts

Hello everyone, sorry I've failed to make an introduction first but I'm Gleech. I've recently delved into the art of Minecraft modding after some minor experience with Javascript, Ruby, and a few other bits of different languages. I've followed some basic tutorials and have a basic mod I've created to add a few more weapons to Minecraft.

 

My mod will be much more later, but I'm starting with the basics...

 

Speaking of basics, I have an idea that is more advanced than basic. The current state of my weapons right now is alright... but there are some issues. For example:

* The weapons' hilt locations are off, since the texture for the weapon is more than just a regular Minecraft sword recolor. The player model holds the hilt at slightly the wrong position. It's even worse when I block with the weapon (They're barely even holding the weapon). It's next to impossible to simply re-do the texture and still have it look the way I want it.

* The weapons are kind of small. Normally Minecraft's weapon sizes would be fine, but these weapons need to be a bit bigger.

 

To my understanding, and I could be wrong since I'm pretty new to this, I need to write up a custom renderer for my weapons to change the size? I would assume this is true for changing the location of where the player model holds it, as well. Now I've been trying to dabble in making an item renderer for this, but I just can't seem to figure it out. All the tutorials I find are about adding Techne models, or using stuff like snowball projectiles and stuff which is just a copy-and-paste of the actual code.

 

Now, maybe (and this is likely), I'm completely wrong in what I have to do and that's why I can't find any tutorials for making a custom renderer for swords. I'm often wrong, and this is a likely case... You can't imagine how much I wish I was wrong and you guys could just tell me "Oh yeah add [insert simple code here] somewhere and it'll do all you want".

 

...BUT just because of my luck I'm going to assume this will be a harder approach than that.

 

Anyone know of any different ways of approaching this, or could anyone give me a push in the right direction?

I've already tried following

, but the part that stumps me is transferring the fact that he's using a model to the fact that I'm not.

 

Anyway thanks in advance for the help. :)

Link to comment
Share on other sites

So just somehow finding a way to increase the size Minecraft renders the default textures at is out of the question then? Theoretically shouldn't one be able to tell Minecraft just to make the item render at a larger size? Like, for example make a custom render class that is very similar to how Minecraft automatically renders out swords currently, and just tell that to increase the size?

 

The reason I'm so hesitant to use custom models is because the weapons will be very difficult to remake in Techne. I tried one and it turned out decently, but it looks a lot better the way Minecraft renders 2D textures in 3D.

Link to comment
Share on other sites

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.