using nbt from another mod

Started by Lilmrmagoo on Thu, 08/27/2020 - 09:35

Topic category: Advanced modding

Last seen on 16:56, 9. Sep 2020
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
using nbt from another mod
Thu, 08/27/2020 - 09:35

so there is this mod that has a money system in it where the money is stored in the nbt of the player and I'm wondering what syntax am I suppose to used to get to it since it's nbt is in somewhat of like a folder system. I'm not sure how to describe it but from what I get from the data command in-game I have to do like ForgeCaps.mineminenomi:entity_stats.belly if I want to get the tag and when displayed in the chat it looks like this ForgeCaps: {"mineminenomi:entity_stats": {belly: 0L}} so I'm not sure if that can be accessed through procedures or if I have to go into the code. maybe it's some kinda array I'm not sure hopefully someone here knows how I could possibly do it.

Last seen on 23:09, 29. Oct 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You just need to change the…
Thu, 08/27/2020 - 11:04

You just need to change the NBT entity number tag called "belly"

Last seen on 16:56, 9. Sep 2020
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
nope doesn't work
Fri, 08/28/2020 - 05:31

nope doesn't work

Last seen on 23:09, 29. Oct 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Then I don't know. The only…
Fri, 08/28/2020 - 05:32

Then I don't know. The only way to change a NBT tag with a procedure is if you know its name.

Last seen on 16:56, 9. Sep 2020
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thing is i know its name but…
Fri, 08/28/2020 - 05:47

thing is i know its name but it seems to be a sort of subtag that I'm not sure if mcreator can do I'm also not trying to change it but just get the info from it. im guessing i have to change something in the code which is why I posted in the advance section.