Help using NBT blocks

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

Topic category: Help with MCreator's application

Last seen on 00:51, 29. Oct 2019
Joined Jan 2017
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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

0Upvote this forum topic
Last seen on 20:30, 22. Feb 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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.

0Upvote this forum topic
Last seen on 00:51, 29. Oct 2019
Joined Jan 2017
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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?

 

0Upvote this forum topic
Last seen on 20:30, 22. Feb 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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.

0Upvote this forum topic
Last seen on 21:42, 5. Dec 2019
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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?

0Upvote this forum topic
Last seen on 20:30, 22. Feb 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Try using entity selector @p
Wed, 09/25/2019 - 07:49

Try using entity selector @p

0Upvote this forum topic
Last seen on 21:42, 5. Dec 2019
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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.

0Upvote this forum topic