Jump to content
  • Home
  • Files
  • Docs
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
  • Non-Forge
  • Minecraft General
  • Texture Packs
  • 2 different models one for a 2D sprite for inventory and another for 3d in hand model for an item?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
bleedbluejrc

2 different models one for a 2D sprite for inventory and another for 3d in hand model for an item?

By bleedbluejrc, November 10, 2020 in Texture Packs

  • Reply to this topic
  • Start new topic

Recommended Posts

bleedbluejrc    0

bleedbluejrc

bleedbluejrc    0

  • Tree Puncher
  • bleedbluejrc
  • Members
  • 0
  • 2 posts
Posted November 10, 2020

could anyone give a very basic example of an instance in which IPerspectiveAwareMode1 allows an item to have 2 different models one for a 2D sprite for inventory and another for 3d in hand model for an item? I just don't understand how to do something like that, I've been looking up stuff an have no clue how to even start. 1.16.4

  • Quote

Share this post


Link to post
Share on other sites

ModMCdl    16

ModMCdl

ModMCdl    16

  • Creeper Killer
  • ModMCdl
  • Members
  • 16
  • 183 posts
Posted November 12, 2020

Are there not parameters in the json modelling of the item to accommodate this? Most tools do something vaguely similar to this, and I feel like it should be simple to expand off of that. 

  • Quote

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

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 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      [1.16] InputEvent.KeyInputEvent never fired

      By diesieben07 · Posted 5 minutes ago

      The correct event for this check is ClientTickEvent. Make sure to check TickEvent#phase.
    • diesieben07
      Question about itemstack capabilities of crafting results

      By diesieben07 · Posted 5 minutes ago

      Yeah, it would be better to just lazily initialize the values in the capability. However AttachCapabilitiesEvent is triggered directly from the ItemStack constructor. So it is impossible to have an ItemStack object and not have AttackCapabilitiesEvent fire for it.
    • Beethoven92
      [1.16] InputEvent.KeyInputEvent never fired

      By Beethoven92 · Posted 10 minutes ago

      They are basically the same. With the annotation method you can also specify the Dist where this event handler will be loaded on. What is wrong with your code is that your method is not declared as static. Take a look here for more info on events: https://mcforge.readthedocs.io/en/latest/events/intro/
    • DARKHAWX
      [1.16] InputEvent.KeyInputEvent never fired

      By DARKHAWX · Posted 23 minutes ago

      Hey there,   I'm trying to setup a basic keybinding, but I can't seem to get the event to fire. Here's my code for subscribing to the event:   @Mod.EventBusSubscriber public class ModKeyInputs { @SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent event) { if (ModKeyBindings.OPEN_DIVINE_FAVOUR_RELATIONSHIP.isPressed()) { Minecraft.getInstance().displayGuiScreen(new DivineFavourRelationshipsScreen(Minecraft.getInstance().player)); } } }   Now I've put a breakpoint in the method there at the start, and I can never get it to fire. Am I subscribing to this event incorrectly?   As a side note, is there much difference between using @Mod.EventBusSubscriber on a class versus MOD_EVENT_BUS.register(ModKeyInputs.class); in the constructor of the main mod class?
    • Tavi007
      Question about itemstack capabilities of crafting results

      By Tavi007 · Posted 24 minutes ago

      just two maps and two strings. I use json files, so anyone can override them with datapacks. Basically each item, that should have default values, also has a corresponding json file. (if an item does not have a corresponding json file, then it will get default default values.)   The information in the files are loaded into a Map<ResourceLocation, DataFromJson> once when the server starts, so i can get them whenever i need them. When the attach event (or the item craft event) trigger i resolve the resourceLocation, get the DataFromJson and then set the itemstack capability. As long as the Map doesn't get humongous, this method shouldn't be a performance issure.
  • Topics

    • DARKHAWX
      2
      [1.16] InputEvent.KeyInputEvent never fired

      By DARKHAWX
      Started 23 minutes ago

    • Tavi007
      3
      Question about itemstack capabilities of crafting results

      By Tavi007
      Started 58 minutes ago

    • StormyRiley1
      4
      When I generate a world it stays at 100%

      By StormyRiley1
      Started 12 hours ago

    • Fizedi
      0
      Loot table change for chest in plains house

      By Fizedi
      Started 55 minutes ago

    • diseasedworm
      1
      A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException

      By diseasedworm
      Started 5 hours ago

  • Who's Online (See full list)

    • diesieben07
    • NindyBun
    • EnderiumSmith
    • Tavi007
    • StormyRiley1
    • troublemaker_47
    • samjviana
    • Beethoven92
    • randomdude12300
    • red-pxl
    • DARKHAWX
  • All Activity
  • Home
  • Non-Forge
  • Minecraft General
  • Texture Packs
  • 2 different models one for a 2D sprite for inventory and another for 3d in hand model for an item?
  • Theme

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