Minecraft Data Packs / World Generation

Witch Huts with Loot Chests! (NBT)

  • check_circle Structures
  • 2,639 views, 4 today
  • 321 downloads, 0 today
  • 13
  • 9
  • 2
Aceplante's Avatar Aceplante
Level 66 : High Grandmaster Spelunker
136
A new variant of the swamp hut with a brewing stand and a loot chest!

My original hope was to replace the existing witch hut, but there are a few issues with that. First, witch huts have custom spawning conditions (only witches spawn within their bounding box) which is useful for late game farms. However, that cannot be replicated with custom structures, so to replace them completely would make witch farms impossible.

Anyways, I have been wanting this for a LONG time, and the only other pack I could find works by testing if a witch and a black cat are standing in the same block (as they do when a witch hut generates), manually sets a chest block, and summons an armor stand to merge a loot table into the chest.

I knew it would be easier to just do it with NBT data. It was a lot of work and research, but I got it working! This pack adds a variant of the witch hut that also has a loot chest, it does not replace existing witch huts (due to the spawning issue I mention above), so you can find both!

The loot table currently consists of witch drops and potions, but feel free to suggest other items in the comments. I think I will update this soon to include glistening melons, ghast tears etc?

Note, for some reason the cats in my custom witch huts are random colors even though their nbt data shows they should be black.

I hope you all love this as much as I do.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This change is included in my RL Megapack posted here: Aceplante's RL Megapack, but I also wanted to post it separately in case anyone wanted this specifically.


Edit: In the above pack, due to new 1.19+ structure mechanics, these have completely replaced vanilla witch huts.
CompatibilityMinecraft 1.13
toMinecraft 1.17
Tags

3 Update Logs

Update #3 : by Aceplante 07/01/2022 11:24:53 pmJul 1st, 2022

Better Thumbnail
LOAD MORE LOGS

Create an account or sign in to comment.

1
03/18/2022 8:01 am
Level 2 : Apprentice Miner
MINHMEO2022
MINHMEO2022's Avatar
Hi, I am new to datapack, can you help me create a datapack with a chest like yours? , Hope you can help me
2
03/18/2022 10:00 am
Level 66 : High Grandmaster Spelunker
Aceplante
Aceplante's Avatar
NBT data structures are unfortunately pretty hard to do. But basically how it works is you can build something small in game and use a structure block to save it. You need to specify a size, then hit save, and you will find the nbt file in that world's structures folder. You can then use that to replace existing structures or add your own!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome