Minecraft Data Packs / Quality of Life

Safe Creative Dimension for Survival Worlds

  • check_circle Functions
  • check_circle Predicates
  • 27,269 views, 19 today
  • 2,910 downloads, 0 today
  • 198
  • 199
  • 78
KawaMood's Avatar KawaMood
Level 74 : Legendary Programmer
675
Creative Dimension

This datapack add a Superflat Creative Dimension, that can safely be used in survival worlds.


/!\ Important : Since worldgen is an experimental feature, Mojang didn't provide a way yet to remove a data pack that uses custom biomes somewhere: this is registered directly in the level.dat file of the world. So before using this data pack, create a backup copy of your world. Until we found a solution, use this data pack only on worlds you don't really want to keep for future versions.

If you already are stuck with it, you can check the "How to remove" section.




Features :


This data pack add a Superflat Creative Dimension, that can be safely used in survival worlds.
When joining the Dream World, players inventory, health points, experience and effects will be stored, and their gamemode will change to creative mode. When they leave the dimension, they will retrieve them back and be set on their last gamemode.


Create portals to access the Dream World


In order to do so, the player will need to create a portal with 8 Amethysts blocks, 2 Lodestones and 1 starter plant among: Oak Sapling, Dark Oak Sapling, Birch Sapling, Crimson Fungus, Warped Fungus. I let you watch the tutorial video above to learn how to set up everything in the right place.

Depending on the starter plant you use, the portal will have a different style.

If you don't want your players to be able to create a portal you can toggle this scoreboard parameter's value :
0 = allowed (by default) | 1 = disabled
scoreboard players set %pk_disable_dream_world_portal_creation PKValue 1
You can also temporarily prevent the players to use portals with this scoreboard parameter :
0 = allowed (by default) | 1 = disabled
scoreboard players set %pk_disable_dream_world_portal_use PKValue 1

Place custom Player Heads

In the Dream World, you can copy the texture's value of a custom Player Head into a Writable Book, and rename this last one to "head" and take it in hand in order to convert it into the desired player head. Many custom Player Heads can be found on minecraft-heads.com/custom-heads. I let you watch the tutorial video above to get more information.

If you don't want your players to be able to create custom player heads, you can toggle this scoreboard parameter value :
0 = allowed (by default) | 1 = disabled
scoreboard players set %pk_disable_dream_world_player_heads_creation PKValue 1

Prevent the players gamemode to stay forced in creative mode while being in the Dream World

For security reasons, the players are checked and forced each tick to be in creative mode while being in the Dream World.

If you don't want that and be able to freely set yourself in spectator mode for example, you can toggle this scoreboard parameter value :
0 = allowed (by default) | 1 = disabled
scoreboard players set %pk_disable_dream_world_forced_gamemode PKValue 1

Allow certain players to use forbidden items in the Dream World

For security reasons, players won't be allowed to use Ender chests, End portal frames, Command blocks and Command block minecarts in the Dream World. If you want some players to bypass this restriction, you can add them the pk_crea_ignore_forbidden_item tag with the following command:
tag <player_name> add pk_crea_ignore_forbidden_item
Note that you need to replace <player_name> with the player's name in this command.


Notes on the datapack's mechanics


- In order to leave the creative dimension, the player can consume a Slow Falling Potion. It will be teleported back to its last visited portal and will retrieve its inventory, experience and effects back. If the player manage to die in the dimension (by a kill command, the void...) it will also safely bring it back to the last visited portal in the same way.

- In order to break a portal, you can either obstruct the Light block on the center, or remove one of the Lodestones that are still hidden in the roots. If needed you can completly customize the portal style if you keep at least those three blocks.

- Ender chests, End portal frames, Command blocks and Command block minecarts are not usable in the Dream World. In this way the player can't take something from here.

- Beds spawnpoint mechanic won't work in the Dream World. If a player right click a bed in this same dimension, it will show that a new spawnpoint has been defined, and indeed, its previous bed spawnpoint will be overrided. However, when he'll die in the overworld (or anywhere else), it will respawn at the real world spawn point. So you need to be careful with bed use in this dimension if you don't want to override your bed point. At least, contrary to the Nether or the End, the beds won't explode.





How to install?


1. Please refer to the Planet Minecraft tutorial to know how to install a data pack : How to Install Minecraft Data Packs.
2. Since the data pack involves world generation with a new dimension, if you're installing the data pack on a server, you'll need to restart the server (don't just use /reload command).





How to remove?


As mentioned in the red warn at the top of the page, there is no direct way to remove a custom dimension easily yet. But in case you are now stuck with it and want to remove it, it exists two convoluted solutions:


First solution : Cloning your world without embedding the custom dimension.

1. Create a new world with the same seed as your current one.
2. Copy every files and folders from the current world to the new world folder but the level.dat file and the folder dimensions/pk_crea/

Note : If you are on a single player world, you may also have to transfer manually your player inventory and grant your advancements back, since they are stored in the level.dat file. For servers, everything is stored in the relative folders (data / advancements...) so you and your players will keep everything.


Second solution : Edit the level.dat file


You can edit the level.dat file of your world with a tool like NBTExplorer, and remove all occurrences of the pk_crea dimension from it.
When it's done, also remove the dimensions/pk_crea/ folder in the world folder.





Report an issue


Safe Creative Dimension for Survival Worlds Minecraft Data Pack Preferably join our Discord Server and create a thread in the dedicated channel for data pack issues.
Otherwise, you can do it directly in the comments section.





For other MC versions


If you use another version than the one recommended on the main download button, you can download the data pack from here:

For MC 1.20 : Download
For MC 1.19.4 : Download
For MC 1.19 to 1.19.3 : Download






License


This data packs follow the CC BY-NC-SA 4.0 license.

You're free to share and adapt this content under the following terms:
  • Attribution (BY) — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • NonCommercial (NC) — You may not use the material for commercial purposes.
  • ShareAlike (SA) — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.




Credits

Aeldrion Iris raycast system
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

6 Update Logs

1.2.3 - 21 March 2023 : by KawaMood 03/20/2023 7:39:50 pmMar 20th, 2023

- Updated biome file's settings for 1.19.4.
LOAD MORE LOGS

Create an account or sign in to comment.

wistwhile
09/23/2023 8:34 pm
Level 1 : New Miner
wistwhile's Avatar
Absolutely love having this on my server, it's made prototyping Create builds and such so much nicer for my friends. No nevermind that it's in theme with our world. :3 Thank you for sharing your work!
4
Ferralis
07/30/2023 3:17 am
Level 9 : Apprentice Skinner
Ferralis's Avatar
Your video is absolutely majestic.
5
CraftyOtter
05/28/2023 1:13 am
Level 19 : Journeyman Artist
CraftyOtter's Avatar
cool idea!
3
Geogold123
03/22/2023 10:38 am
Level 2 : Apprentice Miner
Geogold123's Avatar
Hey, it keeps showing me "data pack validation failed"?, is there a way to fix this problem?, i am on 1.19.3
1
KawaMood
03/22/2023 11:38 am
Level 74 : Legendary Programmer
KawaMood's Avatar
Hi, you are probably using the last version for 1.19.4. Be sure to use the one for 1.19 to 1.19.3.
2
hokage3211
03/20/2023 9:47 pm
Level 49 : Master Engineer
hokage3211's Avatar
Can I ask why your datapack uses custom biomes? Shouldn't it just be a default superflat world, no need to mess with biomes? Or was there a special reason you had it use custom biomes?
1
KawaMood
03/21/2023 7:31 am
Level 74 : Legendary Programmer
history
KawaMood's Avatar
Hi,
In order to prevent mobs to spawn, structures to appear, and rain to fall in it.
The custom biome also doesn't include any carver or feature.
1
TwinSouls
03/17/2023 9:51 pm
Level 20 : Expert Artist
history
TwinSouls's Avatar
Hey there, having a bit of an issue where breaking and sometimes placing saplings causes a huge server lag(around 60-100+ ticks behind). I did narrow it down to this datapack as after creating a new world without it, this problem went away entirely. Not sure if this is trying to do something whenever the player breaks/places a sapling but I would recommend looking into it as currently it is making my game nearly unplayable. I would like to use this datapack as I think the idea and execution are great, just isn't the most optimized right now.
1
KawaMood
03/18/2023 9:14 pm
Level 74 : Legendary Programmer
history
KawaMood's Avatar
Hi,

I tried to take a look back at it since your report sounds surprising, but I didn't find any clue for what happen for you. It works fine on my own server without affecting TPS (this is a really weak server made up for 3-4 friends). Same on single player. The ticked function that runs the placing animation doesn't call any potential heavy process.

Do you use any external tools? Like Spigot/Bukkit/Paper/Forge? Another data packs that may badly act on marker entities or such things maybe?
1
TwinSouls
03/24/2023 7:06 am
Level 20 : Expert Artist
TwinSouls's Avatar
I am running this in a modpack, though I'm not sure why that would cause the datapack to start causing server lag. I haven't had the datapack installed recently and would need to reinstall it if you wanted any kind of log file, though I can say it had something to do with "tree matching"(?) Not sure if rthis is something that was the datapack or maybe a mod, but the issue did go away along with the error after I removed the datapack.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome