Minecraft Data Packs / Game Mechanic

Random Quest Generator

  • check_circle Functions
  • check_circle Loot Tables
  • 3,034 views, 13 today
  • 283 downloads, 1 today
  • 11
  • 14
  • 14
Ickabodx's Avatar Ickabodx
Level 13 : Journeyman Sheep
2
### NOTE: THERE ARE TWO VERSIONS OF THE DATA PACK IN THE ZIP FOLDER, ONE FOR 1.20 AND ONE FOR SNAPSHOT 24w07a, ONLY USE ONE OF THEM IN THE DATA PACK FOLDER ###

Welcome to my first data pack.

This data pack will spawn random quest chests around the world as you play giving you quests/suggestions for things to do during your game.
It's designed if you like playing Minecraft, but once you log on you don't know what to do since you've done it all. It's kind of like
an updated Minecraft Bingo but in-game. When you do quests you can turn them in for loot and it creates an alternative way to get loot.

This works best if you establish yourself in a village and build it out over time. It also works really well if you're playing with a friend.

This data pack was designed to add some random things to do in a Vanilla Minecraft world.

The data pack works on versions of Minecraft up until snapshot 24w07a (the last snapshot
it works in). The data pack will not work in snapshots or versions after the changes
made to NBT tags.

The data pack will randomly create chests around your world with special carrots on a stick,
that when used will generate a written book with a quest/task for the player. The quests
have 5 difficulty levels, Very Easy, Easy, Normal, Hard, and Very Hard. Quests
can then be traded to a Nitwit Villager (Green villager) for either 3 Coal Blocks, 2 Iron
Blocks, 3 Emerald Blocks, 4 Diamonds, or 2 Ancient Debris. Turning in a quest will also
update the Quest Points scoreboard by 1 - 5 points based on difficulty.

(Yes, turning in quests can be exploited so be aware if playing with other people)

How it works

1) Place "Ickabodquests 1.20" data pack into your world data pack folder.
2) When you launch the game you will need to type /reload
Using /reload will generate the starting pack of quests for the player, an
item that will generate a Nitwit Villager, and place chests around your world
3) THIS WILL LAG INITIALLY (i takes a couple of minutes) but will stop once the initial chests are loaded.
The data pack runs a short loop to set up some chests at the beginning.
4) The day will automatically reset once the loop is complete and you will get a
message that the data pack is loaded.
5) Play like normal

## Note: If you are playing with someone else and they need the start quests, run this command:
/function rngquest:start
##



Extras:
- As you play the game will randomly generate chests in your world from time to time. On lower
end systems or if you aren't using a lot of RAM this may create a quick lag spike (a couple ticks)
- There are times when you use a carrot on a stick and a book does not appear in your
inventory. This is a bug, I'm trying to track it down.
- I have no idea if this will work with other data packs, I don't see why not, but you never know
- Chests will only spawn on the surface
- While it was probably possible to create scoreboards for gather and kill type of quests
build quests are subjective, so yes turning in quests can be exploited. But so can
going into creative mode.
- We tried to balance the quests to the levels, but you may see some that sound out of place,
we tried...

Credits:
Ickabodx - www.youtube.com/channel/UCmm6mSRyVJbYm5MFIShxtIA
The Confident Diamond - www.youtube.com/@TheConfidentDiamond
CompatibilityMinecraft 1.13
toMinecraft 1.20
Tags

Create an account or sign in to comment.

1
04/13/2024 4:07 am
Level 1 : New Miner
User5098093G
User5098093G's Avatar
Is there a way to turn off the chest spawning after they started spawning, cause I am slow at doing them and I don't want my world to be filled out with chest after some time lol
1
04/13/2024 10:42 am
Level 13 : Journeyman Sheep
Ickabodx
Ickabodx's Avatar
LOL, sorry not without editing the datapack itself, but if you want to get crazy, you could edit these lines in the "tick.mcfunction" using wordpad line 162. Below is how it is written right now, if you raised the chesttime numbers then you could decrease the spawning. The easiest way would be to increase the last line from 24000.. to something like 100000, then the function would run 1/4 of the time it does now.

# RNG to create chestsscoreboard players add @a Chesttime 1execute as @a[scores={Chesttime=4000}] run execute as @s run function rngquest:spawn_chestveasyexecute as @a[scores={Chesttime=6000}] run execute as @s run function rngquest:spawn_chesteasyexecute as @a[scores={Chesttime=8000}] run execute as @s run function rngquest:spawn_chestnormalexecute as @a[scores={Chesttime=10000}] run execute as @s run function rngquest:spawn_chesthardexecute as @a[scores={Chesttime=12000}] run execute as @s run function rngquest:spawn_chestvhardexecute as @a[scores={Chesttime=14000}] run execute as @s run function rngquest:spawn_chestveasyexecute as @a[scores={Chesttime=16000}] run execute as @s run function rngquest:spawn_chesteasyexecute as @a[scores={Chesttime=18000}] run execute as @s run function rngquest:spawn_chestnormalexecute as @a[scores={Chesttime=20000}] run execute as @s run function rngquest:spawn_chesthardexecute as @a[scores={Chesttime=24000..}] run scoreboard players set @a Chesttime 0
1
04/14/2024 12:07 am
Level 1 : New Miner
User5098093G
User5098093G's Avatar
thanks
1
03/20/2024 4:04 pm
Level 1 : New Miner
User5066343G
User5066343G's Avatar
This is like one of the only procedurally generated quest generators for minecraft for singleplayer worlds for 1.20.4 and I would really appreciate if you could help me out with this. :)
1
03/20/2024 3:50 pm
Level 1 : New Miner
User5066343G
User5066343G's Avatar
Please update or tell me what I am doing wrong because I am so confused.
1
03/20/2024 3:49 pm
Level 1 : New Miner
User5066343G
User5066343G's Avatar
And, I put it into my datapacks folder on so many worlds and it never shows up in the list. I do not know what to do. I fail every time
1
03/20/2024 3:49 pm
Level 1 : New Miner
User5066343G
User5066343G's Avatar
This just does not work. I am playing on version 1.20.4 and I tried it on snapshot version 24w07a but it just does not work.
1
03/20/2024 7:04 pm
Level 13 : Journeyman Sheep
Ickabodx
Ickabodx's Avatar
Hey there, I think I see the issue. I hadn't tried to do this in an existing world but I just tested it and here is what you need to do.

Extract the zip file to the datapack folder, the file that is extracted needs to be titled ( Ickabodquests 1.20 ), when I extracted it the file name was changed to ( ickabodquests-1-20 ). I believe it's case-sensitive so the i needs to be capitalized.

the path should be:
minecraft/saves/worldname/datapacks/Ickabodquests 1.20

From there you should only need to use the command /reload
1
03/20/2024 8:16 pm
Level 1 : New Miner
User5066343G
User5066343G's Avatar
Thanks for the reply! When I load the modpack it comes up as "incompatible" in the datapacks list and when I use it and type /reload, it lags for a moment but even after 5 minutes nothing happens. I do not get any materials and I don't see any chests spawning in my world. It may be good to mention that I am strictly playing on version 1.20.4
1
03/20/2024 10:09 pm
Level 13 : Journeyman Sheep
Ickabodx
Ickabodx's Avatar
I just changed the download file so that it contains both a 1.20.4 and snapshot version. I ran a couple of tests with the 1.20 version and it looks like it's working. I did get some performance issues on the 1.20 version when I had my block distance really high up, but it was fine after I lowered it a little bit. That shouldn't be needed, but it seemed to help.

If the data pack is loaded correctly in the data pack folder you should see the Quest_Points scoreboard on the side of the screen, even before you run /reload.

Are you trying this on an existing world or a new world?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome