Help using NBT blocks

Started by LuckyBacon on

Topic category: Help with MCreator software

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help using NBT blocks

How can i change these values using the new NBT blocks? I would like to read/write a value to Base of "generic.maxHealth" like shown in the screenshot. It is not always located in "0", as i add more mods.
NBT tree sreenshot

You can not alter existing…
Sat, 09/21/2019 - 12:59

You can not alter existing NBT tags yet without custom code. In 1.9.1, you will be able to using command procedure block.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, so now that its a…
Tue, 09/24/2019 - 21:57

Alright, so now that its a thing, how do i read and write to it?

 

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey klemen, I created the…
Wed, 09/25/2019 - 07:46

Hey klemen, I created the following procedure:

https://ibb.co/CH69ZPY

On Block Right Clicked:

Set Local: (string)Command to Create text with "/effect "

                                               Create text with Get Display name of provided entity

                                                                                                                                                                    " minecraft:health_boost 10 5 true"

Execute command / Get Local: Command at x,y,z

I did it both with "/effect " and "effect ". Upon adding send to chat of all players Get Local: Command, it appeared that the command was exactly right, but yet it didn't go off.

Typing in exactly that string as it was printed in chat manually however did play the command. Am I missing something?

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, that worked! I'll…
Wed, 09/25/2019 - 08:10

Thanks, that worked! I'll make a quick video tutorial on it because i predict this will be asked about multiple times from here on.