Blocks metadata

Started by Nogitsu on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Blocks metadata

I am trying to make some growable plants, to easily put the differents growing stages using metadata (so metadata id:0 is stage 0, id:1 stage 1, etc..)
But I can't find how to use metadata 

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Because Nogitsu is trying to…
Fri, 05/03/2019 - 05:55

Because Nogitsu is trying to make a plant with multiple stages, I do not think that block NBT (which I suppose means NBT in TileEntity) will help that much, as this NBT data can not be directly accessed by the blockstate .JSON file, which means you can't change the way the block looks, unless you add also TileEntitySpecialRenderer or a blockstate value, that would act as a wrapper for the data in the TileEntity, but if you do this, you can just use blockstate in the first place (unless you need more than 16 variants).

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have a question with nbt…
Fri, 05/03/2019 - 14:00

I have a question with nbt tags (even if I was the one who suggested them XD).

Do they work with the vanilla ones? I mean, can we for example change a mob's direction, make it unaffected by gravity or add passengers on it?

If yes, then a lot more things are possible than I thought

For mobs, you can set NBT…
Fri, 05/03/2019 - 16:35

For mobs, you can set NBT tags of existing entities too, but just new ones, I am not sure if you can alter existing tags with our current implementation yet.

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well me i don't know what's…
Fri, 05/03/2019 - 16:43

Well me i don't know what's blocks, items, mobs NBT tag and what are they used for

I only know that structures uses .nbt file

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Klemen I will check later…
Fri, 05/03/2019 - 17:12

@Klemen I will check later if they work with the vanilla ones

@Loic_MaitreDeFeu NBT tags are "parameters" that hold a piece of information of a Minecraft block, item, entity, etc. For example, the words written in a book, the profession of a villager or the mob in a mob spawner all are nbt tags.

If you are familiar with commands, they are used there.

For more info, go here