How to add a custom tag to a vanilla block?

Started by engrishLINGLING on

Topic category: Help with MCreator software

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add a custom tag to a vanilla block?
Tue, 06/22/2021 - 05:24 (edited)

I want a vanilla block to have a custom tag from my mod, how can I do this?

I made a tag and under the elements section I chose the vanilla block, and then I made a recipe which produced a modded block using the tag, but when I ran the client, the recipe did not seem to exist.

Edit: I have also been able to verify that the vanilla block does not seem to have the modded tag despite me putting the vanilla block in the elements section of the tag configuration.

Edited by engrishLINGLING on Tue, 06/22/2021 - 05:24
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
did you make it an item tag…
Tue, 06/22/2021 - 07:42

did you make it an item tag and select the vanilla block's block item (the block's form when in inventory ​​​​​​​​​​and is used to place it)? coz from what i understood, you seem to mean that you wanna use the vanilla blocks as item form in your recipe which accepts a tag from your mod. if yes, only use "item" tag type and do not use "block", otherwise it will only apply when the selected block is placed on the world and it can't be used in a recipe

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also it'd be very helpful to…
Tue, 06/22/2021 - 07:44

also it'd be very helpful to post screenshots next time :)

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When using tags in recipes,…
Tue, 06/22/2021 - 08:19

When using tags in recipes,
it has to be written as:

<namespace>:<tag>

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
true. make sure you've done…
Tue, 06/22/2021 - 08:50

true. make sure you've done both of those, and your recipe will most likely start working!

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I made changes based on the…
Tue, 06/22/2021 - 13:16

I made changes based on the above advice and now my elements look like the following:

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't really remember if I…
Tue, 06/22/2021 - 13:39

I can't really remember if I need another mod to see more than the block ID, but both of those blocks should have had the tag bootleg:andesite and they don't.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i see... pains me to say…
Tue, 06/22/2021 - 22:25

i see... pains me to say this but you're doing it wrong, I don't think it's Minecraft or MCreator's fault. don't put your mod ID + the name of the tag on the namespace! if you're making a tag only for your mod, put "mod" and MCreator will handle that for you; if you're making a Forge tag put "forge", and if you're making a Minecraft tag put "minecraft". coz fyi, MC will automatically handle the tag by appending a colon ':' after its namespace then adding the registry name you set. so for example, if you put "forge" in namespace and "diorite" in registry name it'll become "forge:diorite". but if you put "bootleg: andesite" in your tag's namespace and then "bootleg_andesite" in its registry name, it'll end up like "bootleg:andesite:bootleg_andesite", which breaks the standard of tags in Minecraft as that's not how they're supposed to be named. one more thing iirc, colons are not allowed in namespaces. ​​​

hopefully you'll be able to understand what you got wrong and fix the tag ^^