Minecraft Data Packs / Adventure

Villager Interaction

  • check_circle Functions
  • 5,417 views, 3 today
  • 204 downloads, 0 today
MineFriggs's Avatar MineFriggs
Level 37 : Artisan Architect
20
This is the datapack for our Christmas World 2020 Villager interactions.

What this datapack does

This is a collection of datapacks we havecreated for our Christmas World 2020. It contains a separate datapack for each of the villagers that have a tellraw interaction.

When you load the datapack and get close to the villagers with datapack, then they will say something to you (tellraw) and they will give you options to reply. According to your answer, they will say something more, stop speaking or even give you something.

No mods or plugins required!

How to install


Download the folder npcs_datapacks and unzip.
It contains a series of datapacks as zip folders: beat.zip, caspar.zip, charlotte.zip, etc.
You can install all of them or only selected zip folders. It is made in a way, that you can easily add your own datapacks.
These folders must be pasted into your folder datapacks in the following location: .minecraft/saves/(world)/datapacks

Do not unzip the folder leave it as it is! Done.

Setup

First of all make sure you have summond a villager with the same tag as the one used in the datapack. The datapack name and the tag name are the same.

If you use our Christmas World 2020, all the needed villagers are already summond in the world and you can go straight to the next step.

Once installed the datapack you have to setup from within the game.

  1. Go into the world as an operator (cheats enabled). If the world was already running type the /reload command. This will make sure Minecraft loads your datapack into the game.
  2. Enable the three scoreboard objectives by running this command: /function mydatapack:setup_mynpc

Example: For beat.zip the command is /function beat:setup_beat



Compatibility



These datapacks only modify villagers and have no further interaction with other villagers. We tested them with and without Citizens2 plugin, so far.

In case for having further datapacks regarding villager behaviour, have a look at the next paragraph, please.



Modifying and adding own datapacks


The structure of each datapack is the following.

(data pack name)
  • pack.mcmeta
  • pack.png
  • data
    • (namespace)
      • advancements
        • (advancement).json
      • functions
        • (function).mcfunction
      • loot_tables
        • (loot_table).json
      • predicates
        • (predicate).json
      • recipes
        • (recipe).json
      • structures
        • (structure).nbt
      • tags
        • blocks
          • (tag).json
        • entity_types
          • (tag).json
        • fluids
          • (tag).json
        • functions
          • (tag).json
        • items
          • (tag).json
      • dimension_type
        • (dimension type).json
      • dimension
        • (dimension).json
      • worldgen
        • biome
          • (biome).json
        • configured_carver
          • (carver).json
        • configured_feature
          • (feature).json
        • configured_structure_feature
          • (structure_feature).json
        • configured_surface_builder
          • (surface_builder).json
        • noise_settings
          • (noise_settings).json
        • processor_list
          • (block_processor).json
        • template_pool
          • (jigsaw_pool).json

Credits

All these datapacks have been made with the help of MCStacker.

Known issues and bugs

The command functions are not (yet) working properly.
There are also some interactions with Citizens2. This means, it does work with the plugin installed, but it takes some reloads.
In general, the setup function of the datapack is not always stable.
CreditMCStacker.net
CompatibilityMinecraft 1.16
Tags

Create an account or sign in to comment.

2
12/29/2020 2:18 amhistory
Level 1 : New Miner
Mental_Misstep
Mental_Misstep's Avatar
can we get an explanation of what this data-pack pack does?
it has a ton of subdirectories, each one being a data-pack in its own right meaning you need to extract the content of the file into your base data-pack folder.
do they work together? how do you use them? is this compatible with other data-packs?
are they dependent on each other?

EDIT: I made this account just to make this comment.
1
01/02/2021 5:24 am
Level 37 : Artisan Architect
MineFriggs
MineFriggs's Avatar
Hi! Thank you for your questions.

  1. I have added more information regarding the functions of this datapack, now. Hopefully it helps.
  2. Yes, you are correct: "it has a ton of subdirectories, each one being a data-pack in its own right meaning you need to extract the content of the file into your base data-pack folder". I also added this in the description. Important question!
  3. Yes, they work together and also alone? and
  4. No, they are not dependent on each other. You can only use a few of them, or modify some of them, change names, etc. For further use, please, see in the description.
  5. Yes it is compatible with other data-packs. See in the description for further details.
2
12/28/2020 3:46 pm
Level 3 : Apprentice Explorer
AlexR05e
AlexR05e's Avatar
What does this do exactly? If it allows villagers to talk to you, can it work independent of the xmas stuff? I've been searching for something where villagers greet you or talk to you.
2
01/02/2021 5:30 am
Level 37 : Artisan Architect
MineFriggs
MineFriggs's Avatar
Hello. Yes, you can use it independently and yes, it adds villager talks. I have added more information in the details, now.

My intention to upload it in this way, was to make it a helpful tool to create your own villager interaction for your own world. You can simply copy them and modify them directly, or even better use https://mcstacker.net/npc/ and follow their instructions.

In case of doubts, you can use my villagers to compare and learn.

Watch out! The command interactions that I used were not working properly, I am still learning myself.
Let me know, when you find out how to use the talks in combination with commands (like give command, etc. ) and I shall learn from you.

Have fun!
1
12/27/2020 10:59 am
Level 1 : New Miner
User3342113G
User3342113G's Avatar
klklplkj
1
12/27/2020 9:57 amhistory
Level 37 : Artisan Princess
Kate1902019
Kate1902019's Avatar
It's a good thing the paintings are custom paintings.
But please don't use AdFly. Because I don't like that site. It's annoying.
2
01/02/2021 5:30 am
Level 37 : Artisan Architect
MineFriggs
MineFriggs's Avatar
Now it's a direct download. ;-)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome