An example of what could be done with the new BlockStateTag tag

๐ŸŽ™๏ธ Darkiceflame ยท 44 points ยท Posted at 22:28:18 on February 8, 2019 ยท (Permalink)


BlockStateTag Potential

๐ŸŽ™๏ธ Darkiceflame ยท 9 points ยท Posted at 22:29:39 on February 8, 2019 ยท (Permalink)

A couple of notes:

  • The campfire item texture was done using a texture pack, as the tag does not affect the actual item's appearance.
  • The campfire item is being modified by a command to start with the correct tag. There is no way for it to be crafted like this by default.
  • No I will not be releasing this as a data pack (It's literally just a single command being run.)

Here is the command:

execute as @a[nbt={SelectedItem:{id:"minecraft:campfire"}}] run replaceitem entity @s weapon.mainhand minecraft:campfire{BlockStateTag:{lit:"false"}}
tryashtar ยท 6 points ยท Posted at 03:40:14 on February 9, 2019 ยท (Permalink)

The execute is unnecessary there, you can simplify that to

replaceitem entity @a[nbt={SelectedItem:{id:"minecraft:campfire"}}] weapon.mainhand minecraft:campfire{BlockStateTag:{lit:"false"}}

๐ŸŽ™๏ธ Darkiceflame ยท 3 points ยท Posted at 04:19:30 on February 9, 2019 ยท (Permalink)

Good catch! Guess it pays to look things over a second time XD

oOBoomberOo ยท 1 points ยท Posted at 07:53:38 on February 9, 2019 ยท (Permalink)

:( and here I thought you finally figure out a way to add custom nbt recipe.

Jilms ยท 6 points ยท Posted at 22:31:10 on February 8, 2019 ยท (Permalink)

I haven't played 1.14 yet but this isn't the vanilla behavior? Lol this should be how it works :D

CivetKitty ยท 3 points ยท Posted at 07:57:28 on February 9, 2019 ยท (Permalink)

Honestly, that should be the case.

nachog2003 ยท 2 points ยท Posted at 23:20:07 on February 8, 2019 ยท (Permalink)

What's happening there? I don't get it. Isn't that how it's supposed to be?

๐ŸŽ™๏ธ Darkiceflame ยท 18 points ยท Posted at 23:28:14 on February 8, 2019 ยท (Permalink)

By default when you place a campfire it is already lit. By throwing something like this into a data pack or survival map players would have to light it themselves, adding a small degree of challenge.

nachog2003 ยท 2 points ยท Posted at 23:40:46 on February 8, 2019 ยท (Permalink)

Ohhh. That's pretty neat.