Help using NBT blocks

Started by LuckyBacon on Fri, 09/20/2019 - 22:33

Topic category: Help with MCreator's application

Last seen on 03:30, 15. Oct 2019
Joined Jan 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Help using NBT blocks
Fri, 09/20/2019 - 22:33

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.

Last seen on 03:30, 15. Oct 2019
Joined Jan 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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?

 

I believe there are commands…
Wed, 09/25/2019 - 07:02

I believe there are commands that allow this, check Minecraft Wiki would be my recommendation.

Last seen on 21:46, 14. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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?

Last seen on 21:46, 14. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.