Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • Suggestions
  • Default blockstates, block/item models and model patterns
Sign in to follow this  
Followers 2
Alex Sim

Default blockstates, block/item models and model patterns

By Alex Sim, August 15 in Suggestions

  • Reply to this topic
  • Start new topic

Recommended Posts

Alex Sim    0

Alex Sim

Alex Sim    0

  • Tree Puncher
  • Alex Sim
  • Members
  • 0
  • 23 posts
Posted August 15

I don't know whether this has been asked before or whether this is possible or not, but it would be a nice feature for forge blocks without a blockstate to fallback to a signle-state blockstate with block/REGISTRY_NAME.json as default model, and blocks with no blockstate AND model to default to 'block/cube_all' as model and block/REGISTRY_NAME.png as texture

 

Same goes for items, with BlockItems defaulting to their correspective block's model, and normal items defaulting to 'item/generated' model with item/REGISTRY_NAME.png as texture

 

 

Also a more complicated addition would be having reusable models (EG: that provide textures as '${name}_top', '${name}_sides' and '${name}_bottom')

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1519

LexManos

LexManos    1519

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1519
  • 8574 posts
Posted August 15

Just make your json files.

  • Quote

Share this post


Link to post
Share on other sites

Alex Sim    0

Alex Sim

Alex Sim    0

  • Tree Puncher
  • Alex Sim
  • Members
  • 0
  • 23 posts
Posted August 15 (edited)
10 minutes ago, LexManos said:

Just make your json files.

Having to make 3 json files for each block is only part of the problem: having 30+ files in a directory that all do the same thing gets kinda messy and unmanageable;

 

but whatever, I'll keep adding json files until this strikes you as an OK idea I guess :P

Edited August 15 by Alex Sim
  • Quote

Share this post


Link to post
Share on other sites

DaemonUmbra    358

DaemonUmbra

DaemonUmbra    358

  • Reality Controller
  • DaemonUmbra
  • Forum Team
  • 358
  • 6447 posts
Posted August 16

If you're in 1.13+, you shouldn't be doing this manually anyway. Look into the Data Generator system.

  • Quote

Share this post


Link to post
Share on other sites

Alex Sim    0

Alex Sim

Alex Sim    0

  • Tree Puncher
  • Alex Sim
  • Members
  • 0
  • 23 posts
Posted August 16
15 minutes ago, DaemonUmbra said:

If you're in 1.13+, you shouldn't be doing this manually anyway. Look into the Data Generator system.

Any documentation / example source code?

  • Quote

Share this post


Link to post
Share on other sites

DaemonUmbra    358

DaemonUmbra

DaemonUmbra    358

  • Reality Controller
  • DaemonUmbra
  • Forum Team
  • 358
  • 6447 posts
Posted August 16

Not that I know of

  • Haha 1
  • Quote

Share this post


Link to post
Share on other sites

Big_Bad_E    9

Big_Bad_E

Big_Bad_E    9

  • Diamond Finder
  • Big_Bad_E
  • Members
  • 9
  • 312 posts
Posted August 27
On 8/16/2019 at 1:26 PM, DaemonUmbra said:

Not that I know of

Is this a thing? What classes/methods do you use?

  • Quote

Share this post


Link to post
Share on other sites

DaemonUmbra    358

DaemonUmbra

DaemonUmbra    358

  • Reality Controller
  • DaemonUmbra
  • Forum Team
  • 358
  • 6447 posts
Posted August 27

Vanilla and Forge both use the system, however some generators that vanilla doesn't use need to be written (i.e. some things they already did manually ages ago so they didn't bother writing a generator)

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 2
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DragonITA
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA · Posted 18 minutes ago

      package net.batonfack.fantasymod.client.renders; import net.batonfack.fantasymod.FantasyMod; import net.batonfack.fantasymod.client.models.ModelUnicornWithAbstracHorse; import net.batonfack.fantasymod.client.models.ModelUnicornWitoutAbstracHorse; import net.batonfack.fantasymod.entities.UnicornEntity; import net.minecraft.client.renderer.entity.AbstractHorseRenderer; import net.minecraft.client.renderer.entity.EntityRenderer; import net.minecraft.client.renderer.entity.EntityRendererManager; import net.minecraft.client.renderer.entity.MobRenderer; import net.minecraft.entity.passive.horse.AbstractHorseEntity; import net.minecraft.util.ResourceLocation; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.fml.client.registry.IRenderFactory; @OnlyIn(Dist.CLIENT) public class UnicornEntityRender extends AbstractHorseRenderer<UnicornEntity, ModelUnicornWithAbstracHorse<AbstractHorseEntity>> // <<---The Line with the error { //public UnicornEntityRender(EntityRendererManager manager) { // super(manager, new UnicornEntityModel(0), 0f); //} //private static ModelUnicornWitoutAbstracHorse<UnicornEntity> UnicornModel; public static final ResourceLocation unicorn = new ResourceLocation("fantasymod:" + "textures/entity/unicorn_entity.png"); private static float shadowOpaque = 0.0f; public UnicornEntityRender(EntityRendererManager manager, ModelUnicornWithAbstracHorse<AbstractHorseEntity> UnicornModel, float p_i50961_3_) { super(manager, new ModelUnicornWithAbstracHorse<>(0.0f), p_i50961_3_); } @Override protected ResourceLocation getEntityTexture(UnicornEntity entity) { return unicorn; } public static class RenderFactory implements IRenderFactory<UnicornEntity> { @Override public EntityRenderer<? super UnicornEntity> createRenderFor(EntityRendererManager manager) { return new UnicornEntityRender(manager, new ModelUnicornWithAbstracHorse<>(0.0f), shadowOpaque); } } }  
    • DragonITA
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA · Posted 19 minutes ago

    • The_Unkown675
      Can't connect to own server; No syncable config

      By The_Unkown675 · Posted 30 minutes ago

      Server debug file - https://paste.gg/p/anonymous/0671148362b5476fbce55b8922262dad Latest log file -https://paste.gg/p/anonymous/bab7c2b3ca0947df9b10bce9c2632c22 Hope this helps! If you need anything else please let me know, I'll be happy to help, thank you for your help!
    • diesieben07
      Forge 1.12.2 crashes and wont load world!

      By diesieben07 · Posted 31 minutes ago

      In the future please always post the debug.log. From the excerpt you posted it looks like your world got corrupted. Restore from backup.
    • diesieben07
      Clean forge installer

      By diesieben07 · Posted 33 minutes ago

      Only ever download Forge from https://files.minecraftforge.net/. Any other site offering Forge downloads is illegitimate.   There is no Forge version for 1.15 at this time. Be patient.
  • Topics

    • DragonITA
      46
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started Monday at 10:06 AM

    • The_Unkown675
      2
      Can't connect to own server; No syncable config

      By The_Unkown675
      Started 18 hours ago

    • PolarBr0
      1
      Forge 1.12.2 crashes and wont load world!

      By PolarBr0
      Started 51 minutes ago

    • Rick57
      1
      Clean forge installer

      By Rick57
      Started 3 hours ago

    • CrashDbo
      3
      [1.12.2] Water Crafting with dropped items like AE2

      By CrashDbo
      Started 17 hours ago

  • Who's Online (See full list)

    • MoeBoy76
    • nojomo123
    • plugsmustard
    • DragonITA
    • hohserg
  • All Activity
  • Home
  • Minecraft Forge
  • Suggestions
  • Default blockstates, block/item models and model patterns
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community