Minecraft Data Packs / Challenge

Better Dungeons - by Njb1286

  • check_circle Functions
  • check_circle Predicates
  • check_circle Structures
  • 15,223 views, 2 today
  • 2,315 downloads, 0 today
  • 54
  • 52
  • 30
Njb1286's Avatar Njb1286
Level 44 : Master Toast
           Better Dungeons
            Version 1.0
            by Njb1286
- Minecraft 1.17+
- A world with a height of at least 50 blocks

Press one of the download buttons (Media fire is preferable here). Locate it in the folder it downloaded in (Default downloads). Then, move the file into the datapacks folder of your world. Type /reload to get the menu.

Menu actions
Get Items - Get all the items of this Datapack
Spawn Dungeon - Spawn a dungeon around your area
Dungeon size - Change the size dungeons spawn with (Note: If you have a bad computer, make this value low because of performance reasons)
Dungeon height - Change the height dungeons spawn at
Spawn naturally - Dungeons spawn naturally on your world
Dungeon spawn message - When a dungeon spawns, a message appears for every player on the world
Reset to Defaults - Reset all values changeable by players to default (Dungeon size, Dungeon height, etc.)
Uninstall - Uninstall this Datapack

/trigger dun.get_items - Get all the items of this Datapack
/trigger dun.spawn - Spawn a dungeon around your area
/trigger dun.default - Reset all values changeable by players to default

/trigger dun.Uninstall - Uninstall this Datapack

Dungeon rooms (Version 1.0)
- Center
- Dead end
- Prison
- Hall
- Catacombs

Entities (Version 1.0)
- Sludge
- Scum

Give me your ideas!
Please leave in the comments what you would like to see me add to this Datapack, and I might add it.

CompatibilityMinecraft 1.17
toMinecraft 1.18

1 Update Logs

Update #1 : by Njb1286 01/22/2022 8:36:25 pmJan 22nd, 2022

Fixed a center protection despawn bug

Create an account or sign in to comment.

01/09/2022 5:41 pm
Level 1 : New Miner
WiseSilver's Avatar
Could this work in 1.18.1 on a server?
01/28/2022 3:06 pm
Level 1 : New Miner
INQIZZO's Avatar
1.18+ has a glitch that disabled jigsaw blocks soooo no custom structures in 1.18 (but u should at least try, some structures replacing vanilla ones work if they are not too complicated)
12/22/2021 7:50 pm
Level 1 : New Miner
Baakshi's Avatar
I had a giant dungeon generate in my Nether, which I'm fairly sure isn't supposed to happen. Is there a way to fix this?
12/22/2021 8:36 pm
Level 44 : Master Toast
Njb1286's Avatar
I could fix this in a little bit. Thanks for letting me know about this!
12/15/2021 10:54 am
Level 1 : New Miner
Baakshi's Avatar
I found a bug: When using the datapack in 1.18.1, using any command doesn;t show it in the chat (eg; /give @s minecraft:acacia_boat will give boat but not display the fact that it happened in chat) This is fine for the most part, except that I'm making a mash-up pack with other mods/datapacks and the locate command is a big friend of mine. You can see where this is going, the locate command doesn't appear in the chat.

My guess is that a lot of commands display in the chat when a dungeon so you turned it off, but is there any way to have them on with the commands displaying in chat, or better yet, not have the dungeon text appear but have commands appear?
12/17/2021 3:22 pm
Level 44 : Master Toast
Njb1286's Avatar
I made commands not display in the chat so that when you clicked the buttons in the menu, it would be a seamless transition. However, this can easily be fixed by going into the load.mcfunction file. I have organized this file allowing you to see what specific lines do. Just go down to the gamerules section and you will find gamerule sendCommandFeedback false. If you delete this line, reload and set it to true, then it should work.
12/17/2021 6:08 pm
Level 1 : New Miner
Baakshi's Avatar
I see. Thanks for the help!
12/12/2021 7:14 pm
Level 1 : New Miner
Baakshi's Avatar
I think that it would be really helpful to expand the size of the hallways, since it's really difficult to get through them, and you have. no idea where you're going. I think just expanding them by 1 or 2 blocks would be enough
10/14/2021 2:39 pm
Level 1 : New Miner
User3805574G's Avatar
Hello! could you go a bit in-depth on how this data pack works?
10/16/2021 6:46 pm
Level 44 : Master Toast
Njb1286's Avatar
Sure! May not be the best explanation, but here you go:

After a certain amount of time, a dungeon will spawn in a random location around the player along with a message that a dungeon has spawned. The very first room to spawn is the center room with four different paths. Each path has an entity on the righthand side of it. Beside this entity is a marked block like a cracked stone brick. If this block is on the north side, the structure will spawn a random room in the north direction. Likewise with all the other directions. The randomized rooms uses an Area Effect Cloud randomizer which spawns a set amount of Area Effect Cloud, and gives a tag to a random one. If the tag is given to AEC #1, it will spawn room #1. It will do this for every room. On spawn, it will create a raycast for every end point of a room. This raycast will find the size score and add to the placed size. Once the size matches or is greater than the set size, it will stop creating and then remove these entities that have built the dungeon.

On top of each chest in the structure is an entity that puts loot in the chest. It will give the chest a loot table from this datapack, then remove itself.

Each custom mob in this datapack uses armor stands to display it. They are all basically slimes that do different damage values and look different. The code will look for these mobs and position the command at the position that the armor stand is set. It will then continually teleport the armor stand back into it's position. If one of these mobs is hit, the datapack will detect that and temporarily change the block that the armor stands are holding to better resemble a hit mob along with a sound effect built from mixed built-in sound effects. On death, it will search for the smaller slimes, and spawn a smaller version of that mob. The biggest one can be is the size of a full block (Falling Block). The smallest they can be is a small armor stand holding a block. For their drops, I added some loot tables to the slimes.

If you have any other things you'd like to know about this datapack, you can let me know and I will do my best to explain.