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
  • Mod Developer Central
  • Modder Support
  • Minecraft's BlockItem Declarations
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
monkeysHK

Minecraft's BlockItem Declarations

By monkeysHK, January 14 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

monkeysHK    0

monkeysHK

monkeysHK    0

  • Tree Puncher
  • monkeysHK
  • Members
  • 0
  • 15 posts
Posted January 14 (edited)

Hello. As we can look at the declaration of blocks in Blocks.java, I want to know if forge has a place to store vanilla BlockItem declarations (for each of their vanilla blocks), or where they initialize.

Edited January 14 by monkeysHK
  • Quote

Share this post


Link to post
Share on other sites

ChampionAsh5357    160

ChampionAsh5357

ChampionAsh5357    160

  • World Shaper
  • ChampionAsh5357
  • Members
  • 160
  • 1019 posts
Posted January 14

A BlockItem is essentially an Item with a block's name. As such, they would be stored under Items.

  • Quote

Share this post


Link to post
Share on other sites

monkeysHK    0

monkeysHK

monkeysHK    0

  • Tree Puncher
  • monkeysHK
  • Members
  • 0
  • 15 posts
Posted January 14
2 hours ago, ChampionAsh5357 said:

they would be stored under Items

That's exactly what I wanted to look at. (It's so obvious and I was dumb)

Thanks :)

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



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • thinkcraftpl
      [1.16.3] Server won't start

      By thinkcraftpl · Posted just now

      So to use this forge version I need to downgrade java to 14?
    • diesieben07
      Register a Custom Command

      By diesieben07 · Posted 1 minute ago

      Why are you making your own CommandDispatcher? Of course Minecraft won't know about any commands you register to this custom dispatcher.
    • diesieben07
      [1.16.5] get SeverWorld

      By diesieben07 · Posted 2 minutes ago

      On the server every world is a ServerWorld. You use a cast.
    • diesieben07
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By diesieben07 · Posted 3 minutes ago

      You are not doing what I told you to do: You are not creating your handler and LazyOptional in the constructor. You are not using super.getCapability to get the default handlers. Additionally: Please use @Override when overriding methods. Do not use @OnlyIn. This is only four slots. Do you actually have any slots besides the armor and hand inventory?
    • monkeysHK
      Register a Custom Command

      By monkeysHK · Posted 4 minutes ago

      Hello. I want to register a command class. This is how I did it and doesn't work. private static final CommandDispatcher<CommandSource> dispatcher = new CommandDispatcher<>(); @SubscribeEvent public static void serverStarting(FMLServerStartingEvent event) { ConfigCommand.register(dispatcher); }   What is the right way to register the command?
  • Topics

    • thinkcraftpl
      2
      [1.16.3] Server won't start

      By thinkcraftpl
      Started 15 minutes ago

    • monkeysHK
      1
      Register a Custom Command

      By monkeysHK
      Started 4 minutes ago

    • Luis_ST
      1
      [1.16.5] get SeverWorld

      By Luis_ST
      Started 21 minutes ago

    • Klarks
      20
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks
      Started 11 hours ago

    • Jake_Titan
      2
      my server recently started crashing when I try to launch it

      By Jake_Titan
      Started 24 minutes ago

  • Who's Online (See full list)

    • diesieben07
    • thinkcraftpl
    • Nite_Shad0w
    • Luis_ST
    • Warsade
    • magn919
    • monkeysHK
    • Linky132
    • Jake_Titan
    • ProTankerAlfa
    • dollarflower1
    • MemeMan
    • Klarks
    • FloweyTF
    • zOnlyKroks
    • NubikCZ
    • CatSack
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Minecraft's BlockItem Declarations
  • Theme

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