Jump to content

Is there a way to remove the block sections from the model location in blockstates


Recommended Posts

Posted

in my blockstate for rendering my model i want to redirect it from models/block/ to models/item/  but i dont know how i would do it.

 

what is shows in log:

saomod:block/item/weapon/starter/sword/starter_sword.obj

 

what i have in json:

saomod:item/weapon/starter/sword/starter_sword.obj

 

Posted (edited)

Where is your OBJ file located?

 

and what does your code for the item look like?

 

Edited by Animus_Surge

Forge 1.8.9 and below are not supported in the forums anymore. Please upgrade to a later version.

 

My experimental mod: new GitHub page to be created... (Add your favorite TCGs in MC! [WIP])

 

When asking for assistance with modding or making mods, paste the log (located in .minecraft/logs folder for mod users or in the console for mod makers).

Posted
  On 8/8/2018 at 9:07 PM, Animus_Surge said:

Where is your OBJ file located?

 

and what does your code for the item look like?

 

Expand  

It is located in models/item/weapon/starter/sword/starter_sword.obj but with the blockstate setup it forces me to use block instead of item

i am wondering if there is a way to fix this

 

Posted
  On 8/8/2018 at 10:40 PM, Discult said:

models/item/weapon/starter/sword/starter_sword.obj

Expand  

ok I would try to instead of having the package like:

*.models.item.weapon.starter.sword

I would have it like:

*.models.item.weapon

for right now.

  On 8/8/2018 at 10:40 PM, Discult said:

with the blockstate setup it forces me to use block instead of item

Expand  

That is common. It makes you use 'block' instead of 'item' unless you're not using a 3D model. Then it has you using 'block'. Can you paste your code and JSON setup for the weapon's class

Forge 1.8.9 and below are not supported in the forums anymore. Please upgrade to a later version.

 

My experimental mod: new GitHub page to be created... (Add your favorite TCGs in MC! [WIP])

 

When asking for assistance with modding or making mods, paste the log (located in .minecraft/logs folder for mod users or in the console for mod makers).

Posted
  On 8/8/2018 at 11:46 PM, Animus_Surge said:

ok I would try to instead of having the package like:

*.models.item.weapon.starter.sword

I would have it like:

*.models.item.weapon

for right now.

That is common. It makes you use 'block' instead of 'item' unless you're not using a 3D model. Then it has you using 'block'. Can you paste your code and JSON setup for the weapon's class

Expand  

i have the model loading i am just wondering if i can change it to ask for the item folder instead of the block folder in the blockstate cause i am loading a obj model for the items so i have to do it in blockstate

 

Posted
  On 8/8/2018 at 11:46 PM, Animus_Surge said:

Can you paste your code and JSON setup for the weapon's class

Expand  

 

Forge 1.8.9 and below are not supported in the forums anymore. Please upgrade to a later version.

 

My experimental mod: new GitHub page to be created... (Add your favorite TCGs in MC! [WIP])

 

When asking for assistance with modding or making mods, paste the log (located in .minecraft/logs folder for mod users or in the console for mod makers).

Posted
  On 8/8/2018 at 11:54 PM, Animus_Surge said:

 

Expand  

 

Json:

{
    "forge_marker": 1,
    "defaults": {
        "mod   el": "saomod:item/weapon/starter/sword/starter_sword.obj"
    },
    "variants": {
    "inventory": [{
      "transform": "forge:default-item"
    }]
    }
}
 

Sword:

  Reveal hidden contents

Weapon:

  Reveal hidden contents

 

Posted (edited)
  On 8/8/2018 at 11:56 PM, Discult said:

"mod   el": "saomod:item/weapon/starter/sword/starter_sword.obj"

Expand  

In the quoted line, what does '"mod   el"' in the tag part of the line mean?

 

also what imports are you using in the weapon class?

 

I know, lots of questions, but they are important.

Edited by Animus_Surge

Forge 1.8.9 and below are not supported in the forums anymore. Please upgrade to a later version.

 

My experimental mod: new GitHub page to be created... (Add your favorite TCGs in MC! [WIP])

 

When asking for assistance with modding or making mods, paste the log (located in .minecraft/logs folder for mod users or in the console for mod makers).

Posted
  On 8/9/2018 at 12:06 AM, Animus_Surge said:

In the quoted line, what does '"mod   el"' in the tag part of the line mean?

 

also what imports are you using in the weapon class?

 

I know, lots of questions, but they are important.

Expand  

yea i already fixed the model thing and in the weapons it is 

  Reveal hidden contents

 

Posted
  On 8/9/2018 at 12:10 AM, Discult said:

super.getItemAttributeModifiers(equipmentSlot);

Expand  

In this line in your code, the 'getItemAttributeModifiers' attribute is depreciated. It should say so if you're using eclipse.

 

  On 8/9/2018 at 12:10 AM, Discult said:

yea i already fixed the model thing and in the weapons it is

Expand  

So you fixed the issue?

Forge 1.8.9 and below are not supported in the forums anymore. Please upgrade to a later version.

 

My experimental mod: new GitHub page to be created... (Add your favorite TCGs in MC! [WIP])

 

When asking for assistance with modding or making mods, paste the log (located in .minecraft/logs folder for mod users or in the console for mod makers).

Posted
  On 8/9/2018 at 12:19 AM, Animus_Surge said:

So you fixed the issue?

Expand  

i mean i fixed the mod el it is suppose to be model and it isnt really a problem that is why it is in general just wondering if i can change the model location from block to item cause by default blockstates have you put it in block

 

Posted

To be honest, I have no clue. But I would try putting the OBJ file into the block models folder and change it so it matches and see what happens. 

Forge 1.8.9 and below are not supported in the forums anymore. Please upgrade to a later version.

 

My experimental mod: new GitHub page to be created... (Add your favorite TCGs in MC! [WIP])

 

When asking for assistance with modding or making mods, paste the log (located in .minecraft/logs folder for mod users or in the console for mod makers).

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.