using nbt from another mod

Started by Lilmrmagoo on

Topic category: Advanced modding

Active 4 years ago
Joined Apr 2016
Points:
808

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 75
using nbt from another mod

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.

Active 9 months ago
Joined Jun 2015
Points:
1274

User statistics:

  • Modifications: 10
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 544
You just need to change the…
Thu, 08/27/2020 - 11:04

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

Active 4 years ago
Joined Apr 2016
Points:
808

User statistics:

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

nope doesn't work

Active 9 months ago
Joined Jun 2015
Points:
1274

User statistics:

  • Modifications: 10
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 544
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.

Active 4 years ago
Joined Apr 2016
Points:
808

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 75
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.