How to use /fill with custom blocks with custom NBT tags

Started by _CrimsonInferno_ on Sun, 01/17/2021 - 23:32

Topic category: Help with modding (Java Edition)

Last seen on 20:12, 26. Feb 2021
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to use /fill with custom blocks with custom NBT tags
Sun, 01/17/2021 - 23:32

Hey, so I've got a block that's supposed to swell and create a large bulb of itself, and the way it does this is that it has an nbt "puffStep" initial value of 1. If a random number 0-1 is less than "puffStep," it will expand. If it does expand, it should fill the area around it with copies of itself, with their "puffStep" nbt decreased by 0.2 (so now it would be 0.8). That way it would be able to make a maximum of 5 steps. The problem is, I don't know how to make a fill command that can create custom blocks with their custom nbts changed.

Last seen on 20:12, 26. Feb 2021
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Anybody got any ideas?
Wed, 01/20/2021 - 12:26

Anybody got any ideas?

Last seen on 20:12, 26. Feb 2021
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I know what the typical…
Tue, 01/26/2021 - 14:04

I know what the typical format for including nbts in a full command is, but it doesn’t seem to work for custom nbts.

Last seen on 20:52, 27. Feb 2021
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I think custom NBTs are…
Wed, 01/27/2021 - 09:11

I think custom NBTs are stored in a sub-tag group, but I am not sure which one, could be CustomNBT?

Last seen on 20:12, 26. Feb 2021
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How would I use that in a…
Wed, 01/27/2021 - 14:14

How would I use that in a full command? I thought it would be as simple as the normal fill command nbt format, but that didn’t work.

Last seen on 19:00, 27. Feb 2021
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There is a F3 shortcut for…
Wed, 01/27/2021 - 14:45

There is a F3 shortcut for copying block information. I don't know which one it is but I know it is there.

Last seen on 20:12, 26. Feb 2021
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Got it to work, the shortcut…
Thu, 01/28/2021 - 18:37

Got it to work, the shortcut was F3 + I.