Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14.4]Structure loot table?
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
Krevik

[1.14.4]Structure loot table?

By Krevik, November 22 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Krevik    2

Krevik

Krevik    2

  • Creeper Killer
  • Krevik
  • Members
  • 2
  • 168 posts
Posted November 22

Hey there. I am having problem with adding loot to chests in my structure. Structure is built using jigsaw pieces just like vanilla villages. However I cannot find a word about placing loot in the chests. Does anyone know how to do it? / Where to find the code about populating vanilla villages chests?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6671

diesieben07

diesieben07    6671

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6671
  • 45590 posts
Posted November 22

You can see the structure NBT format here:

https://minecraft.gamepedia.com/Structure_block_file_format

 

For tile entities the tile entity NBT is stored in the structure file. This enables you to set the LootTable property of chests (see here).

  • Quote

Share this post


Link to post
Share on other sites

Krevik    2

Krevik

Krevik    2

  • Creeper Killer
  • Krevik
  • Members
  • 2
  • 168 posts
Posted November 23
14 hours ago, diesieben07 said:

You can see the structure NBT format here:

https://minecraft.gamepedia.com/Structure_block_file_format

 

For tile entities the tile entity NBT is stored in the structure file. This enables you to set the LootTable property of chests (see here).

I've already been checking this. Also I opened a village structure with chests, and I could find nothing. Am I missing something?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6671

diesieben07

diesieben07    6671

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6671
  • 45590 posts
Posted November 23
2 hours ago, Krevik said:

I've already been checking this. Also I opened a village structure with chests, and I could find nothing. Am I missing something?

Yes, you are. I looked at the village structure and there is definitely tile entity data in there.

  • Like 1
  • Quote

Share this post


Link to post
Share on other sites

Krevik    2

Krevik

Krevik    2

  • Creeper Killer
  • Krevik
  • Members
  • 2
  • 168 posts
Posted November 23
10 minutes ago, diesieben07 said:

Yes, you are. I looked at the village structure and there is definitely tile entity data in there.

okay then, I will keep looking, thank you a lot for help!

  • Quote

Share this post


Link to post
Share on other sites

Krevik    2

Krevik

Krevik    2

  • Creeper Killer
  • Krevik
  • Members
  • 2
  • 168 posts
Posted November 23
5 hours ago, diesieben07 said:

Yes, you are. I looked at the village structure and there is definitely tile entity data in there.

Only one more question - do you know some good NBT editor, that will allow me to easily find chest inside "blocks" tag not inside "palette" tag?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6671

diesieben07

diesieben07    6671

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6671
  • 45590 posts
Posted November 23
48 minutes ago, Krevik said:

Only one more question - do you know some good NBT editor, that will allow me to easily find chest inside "blocks" tag not inside "palette" tag?

I used NBTExplorer.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • thedarkcolour
      [1.14] Patching method with coremod in TreeFeature causes IncompatibleClassChangeError

      By thedarkcolour · Posted 13 minutes ago

      I got it to work by not calling getWorld() and using IWorldGenerationReader#setBlockState, thanks!
    • plugsmustard
      on/off button for custom furnace

      By plugsmustard · Posted 20 minutes ago

      buf.writeBlockPos(pos);  <- this pos isn't right is it? it looks like other examples i've seen, but it's telling me to access it in a static way, which fucks with the other pos. any advice?
    • J0WAY
      [1.12.2] How do i make it so my sword renders in my mobs hand?.

      By J0WAY · Posted 25 minutes ago

      protected void setEquipmentBasedOnDifficult(DifficultyInstance difficulty)     {         this.setItemStackToSlot(EntityEquipmentSlot.MAINHAND, new ItemStack(ModItems.BARBARIAN_SWORD));     }
    • thedarkcolour
      [1.14] Patching method with coremod in TreeFeature causes IncompatibleClassChangeError

      By thedarkcolour · Posted 25 minutes ago

      Am I able to setBlockState with IWorldGenerationReader?
    • Draco18s
      [1.14.4] [UNSOLVED] Server Thread Freezes After Entity Explodes

      By Draco18s · Posted 30 minutes ago

      No, it will outright crash the dedicated server. You can't do this at all. You want to send a message to a player you need to send a message to a player.
  • Topics

    • thedarkcolour
      18
      [1.14] Patching method with coremod in TreeFeature causes IncompatibleClassChangeError

      By thedarkcolour
      Started Yesterday at 06:04 AM

    • plugsmustard
      37
      on/off button for custom furnace

      By plugsmustard
      Started Wednesday at 03:11 PM

    • J0WAY
      5
      [1.12.2] How do i make it so my sword renders in my mobs hand?.

      By J0WAY
      Started 19 hours ago

    • saxon564
      4
      [1.14.4] [UNSOLVED] Server Thread Freezes After Entity Explodes

      By saxon564
      Started 11 hours ago

    • JetCobblestone
      7
      [1.14] layout of a modpack

      By JetCobblestone
      Started 22 hours ago

  • Who's Online (See full list)

    • plugsmustard
    • tomatoBhutan
    • solitone
    • Tanizen
    • sidney18
    • raulllano
    • DragonITA
    • flame_antoine
    • Fifou_BE
    • eatthenight
    • Snailtan
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14.4]Structure loot table?
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community