#GeckoJS armor

49 messages · Page 1 of 1 (latest)

ruby viper
#
  1. Thank lord this mod exists
  2. Do I need to make multiple geo json files for each piece of armor instead of just 1?
  3. The armor doesn't really rotate properly with the player model (I probably silly)
  4. The model just doesn't show up in 3rd person only on the inventory character (again probably me silly)
StartupEvents.registry('item', event => {
    event.create('geckojs:ichin_helmet', 'anim_helmet')
    .geoModel(geo => {
        geo.setSimpleModel('kubejs:geo/ichin_armor.geo.json')
        geo.setSimpleTexture('kubejs:textures/models/armor/ichin_armor.png')
    })
    .boneVisibility((renderer, slot) => {
        renderer.setAllVisible(false);

        if (slot == "head") {
            renderer.setBoneVisible(renderer.getHeadBone(), true);
        }
    })
    .tier('ichin')
    .displayName('Ichin Helmet')
})
potent novaBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

ruby viper
#

@sullen tapir are you also the gecko master

sullen tapir
ruby viper
#

hahaha

sullen tapir
#

that being said why is it you're setting the bone visibility to false? heh

ruby viper
#

honestly idk this is just the only armor related script I could find for geckojs

sullen tapir
#

the guy i think is in the discord @opaque plinth

#

will probably know whats happening more than me

#

not sure how active the guy is though

ruby viper
#

since I couldnt exactly figure out the addon ive been trying to just use the normal armor system and omg why is it so nonsensical compared to anything else in minecraft

#

i have no idea how mods like cataclysm made their armor textures, because it looks straight forward, but then when I do it the entire texture is on my head instead of anywhere it is supposed to be

sullen tapir
#

it should be the same concept with making a geckolib item in blockbench then exporting the texture/geo model/animations

ruby viper
#

thats what I assumed, but they dont use geckolib

sullen tapir
#

what

#

the addon doesnt use geckolib modeling?

#

if thats the case cant you convert the blockbench project to geckolib

#

with the convert option

ruby viper
#

er sorry cataclysm doesnt use geckolib, I wanted to use geckolib because I assumed I would need to for what I am doing, I think you just have to make multiple geo files for each piece of gear if I were to use geckojs

#

does minecraft by default only really accept 16x armor textures?

sullen tapir
#

should accept any division of 16

#

although

#

i've not messed specifically with armor so not sure

vestal cove
ruby viper
#

the script above if I am inferring correctly should only make certain parts of the texture visible if they are equipped correct?

vestal cove
#

Yes

#

I can send you my script and such if you need.
Mine is fully functioning

ruby viper
#

yea I feel like I am missing something

vestal cove
#

Had to send screenshots, sorry...

#

Oh I see a problem in your code

#

You have the wrong file path.
You need to use 'geckojs' not 'kubejs'

ruby viper
#

ohh it's its own id path ok

vestal cove
#

Yeah. It's a bit confusing

ruby viper
#

yea idk its still displaying the whole armor with just the helmet

vestal cove
#

Can you send me a screenshot of you blockbench file.
The folders that you have your blocks in

ruby viper
vestal cove
#

Yeah. There's your problem

#

It needs to be named properly.
It should look something like this:

#

Because these folder names are the bones for the model.
You need to have the right name for each bone. Otherwise it doesn't know what you're trying to do.

ruby viper
#

oh wait I just realized I was on the wrong blockbench file in the first place MoniFacepalm

#

i was on the animated model and not the armor model

vestal cove
#

They should be the same?
Do you mean different armors?

ruby viper
#

no the file structure defaults to the correct naming conventions when you make a geckolib armor model, the folder names are different in an animated model (for some reason)

vestal cove
#

Ah

#

If you're still having trouble. You can send me the blockbench file and I'll try and sort it out.

ruby viper
#

ok FINALLY, sometimes, most of the time, I really love and appreciate modding and everything that goes into it, and then, sometimes, I encounter something like this, where I am like, why in the world did anyone think this was a good way of doing things, but thank you so much for helping me fix it

vestal cove
#

No problem o/

#

Remember to close the ticket if you've solved it.