• check_circle Functions
  • check_circle Predicates
  • 20,399 views, 24 today
  • 120 downloads, 0 today
  • 20
  • 17
  • 8
E4ry avatar E4ry
Level 64 : High Grandmaster Programmer
81
Minecraft AI recap:
With this datapack is it possible to talk to virtual person/system, by typing words into the chat. In the Youtube video is it possible to see what i mean. This datapack can you use in survival, but i don't made this datapack specific for survival. You need also OP when you have a server, to use this datapack.

This datapack is especially made for map/datapack makers. You need to know how datapacks ect.. works, otherwise you can't add your own things to this datapack. I am telling this because it's possible to add your own words/codes and systems to the datapack. I have made 2 Quick tutorial's video's for that and have some text for explanation.

You are allowed to use systems or the whole datapack in your own datapack. If you want this system in your own datapack. It will be nice if you credit me, when you use this datapack in your own datapack, or made out of this datapack a new datapack. But that's your choice.

The tutorial is only for the person's that wants to add their own things to the datapack. The only important command you need to know is this one: /trigger AI

This datapack 100% sure not bug free, and i am not gonna update this datapack often. Don't compare this datapack with my other survival datapacks!

If you have questions, you can send me a private mail on PlanetMinecraft or comment in the comment section.

Minecraft AI tutorial:
This tutorial is only for the people that wants to add their own things to the datapack. To make an own datapack with this datapack within it. Or the people that want to use some systems from this datapack. The only command you need to know for the datapack is this command: /trigger AI

This datapack can only be used if you have OP, incase you use this datapack on a server. If you want this datapack on your server you need to have an good server. Otherwise the keyboard can trip sometimes.

Quick tutorial video's:
Custom commands (words): https://www.youtube.com/watch?v=fWewzb9rjUA
Custom codes: https://www.youtube.com/watch?v=cn7dsyXvkJg

The video's only are not enough, if you want to add things do the datapack ect..

#Maps:
Map code_files: in this map, can you put the mcfunction files for your custom codes, do the files only in the custom map!
Map command_files: in this map, can you put the mcfunction files for your custom commands, do the files only in the custom map!

Map commands: Here are stored all codes/commands from custom and the default ones. In the custom map the custom and in the default map the default, (v1.2)
List: all the commands listed
List: all the codes listed
Ony use the list files from the custom map!

#Custom commands/codes
example 1, for commands:
#Rps
execute as @s[​scores={KBS.1=4,KBS.2=10,KBS.3=12}] run tag @s add Cmp
execute as @s[​scores={KBS.1=4,KBS.2=10,KBS.3=12}] run scoreboard players add @s Commands 1
execute as @s[​scores={KBS.1=4,KBS.2=10,KBS.3=12}] run function ai:commands/default/rps

Use the Cmp tag, otherwise the datapack will think that there is no command registered on that word!
Always add 1 score to the Commands, by codes is it Codes, that will help detecting problems, when for example 2 commandes are executed at the same time.

Example 2, for codes:
#Disabling/removing the datapack, the code is 00000
execute as @s[​scores={Y.1=0,Y.2=0,Y.3=0,Y.4=0,Y.5=0}] run tag @s add Cmp.
execute as @s[​scores={Y.1=0,Y.2=0,Y.3=0,Y.4=0,Y.5=0}] run tag @s add DR
execute as @s[​scores={Y.1=0,Y.2=0,Y.3=0,Y.4=0,Y.5=0}] run scoreboard players add @s Codes 1
execute as @s[​scores={Y.1=0,Y.2=0,Y.3=0,Y.4=0,Y.5=0},tag=SC] run function ai:codes/default/remove

Forget the DR tag, that's only important for this code
Tag and score are the same sitaution as by commands, but by the codes you need an extra tag the SC tag.
Because the code systems has an other system, it will run the commands 2 times, use the final commands, with the SC tag, look in the default listy.mcfunction file for examples. The commands with the SC tag will be executed once.

KBS.1 stands for slot 1 and KBS.2 for 2 ect.
Y.1 stands for slot 1 and Y.2 for 2 ect.

For example the word cheese
the numbers: 22 16 3 3 12 3
KBS.1=22, KBS.2=16, KBS.3=3, KBS.4=3, KBS.5=12, KBS.6=3
6 slots

Same situation for the codes

Be smart and add extra tags when you use 2 words that are by the begin the same, for example sheep and sheeps, if you type sheeps it automatically take the sheep to!
Add tags to your custom commands when 2 words have the same beginning, that will fix the problem of 2 words executed at the same time, look in the default list.mcfunction file for some examples
To remove the custom tags, add it under the line "Double tags"

#Custom messages
If you want that the AI person answers you need to set this at the begin: "[@e[​type=armor_stand,tag=AI]]" don't forget to use the selector function!

#Custom scoreboards
Add the custom scoreboards by the start file, don't forget to add it also to the remove file in the default code_files map.

#Extra information
This default and custom list works in a type of loop, it starts by the default file and ends in the custom file.

24/7 file in the tick map.

Use /trigger AI to come by the AI and use the word qwerty to come by the code's.

If you want to change some system things you need to look, how i made everything and maybe you don't need my help.
Don't think that i expect a lot of people are going to do this, but i always want to give people the opportunity!

Minecraft AI menu:
You can go to the menu, by typing to the AI the word menu.

In the menu is it possible to change the name of the AI. By clicking on the current name and than change the name in the command and than execute the command.

By connected datapacks is it possible to enable custom datapack words. You can set it for each datapack on or off.

The supported datapacks:
Survival+
Home datapackim
XpStorage datapack
Clearlag datapack

By messages is it possible to set JoinMessage or PlayGameMessage to on or off. By JoinMessage do you get a message when you join your world or server, that's based on a randomizer. By PlayGameMessage will you get each hour a message to play a game with the AI. Also based on a randomizer.

It's important to set sendCommandFeedback to false otherwise you will be spammed by not important messages from Minecraft.

All the default words:
Hello
Hi
Netflix
Youtube
Spotify
Instagram
Number (Random number message)
Reload
Menu (The datapack menu)
Qwerty (Keyboard for the codes)
Games (Game menu)
Game (Game menu)
Rps (Rock, paper, scissors)
Bored
Bore
Boring
Time
Coords
Name
Hey
Tired
Lol
Happy
Angry
Codes
Biome
Weather (Weather message)
Rain (Weather message)
Thunder (Weather message)
Explain
Sad
Version
Music (Music menu)
Disc (Music menu)
Diamond (Diamond layer tracker)
help (link to this page)
ask (link to this page)
google
ga (game)
co (coords)
we (weather)
bi (biome)
settings (menu)
mn (menu)

When cheats are enabled: (Code: 55555)
Creative
Survival
Adventure
Spectator
Noon
Midnight
Day
Night
cr (creative)
sv (survival)
ad (adventure)
sp (spectator)
CompatibilityMinecraft 1.15
toMinecraft 1.16
Tags

5 Update Logs

Version 1.4 : 08/17/2020 9:33:51 amAug 17th, 2020

Color changes
Small system improvements
Bugs fixed
AI personalized added

New shortcuts:
ga (game)
co (coords)
we (weather)
bi (biome)
settings (menu)
mn (menu)
cheats enabled:
cr (creative)
sv (survival)
ad (adventure)
sp (spectator)

You don't need to unzip the zip file this time.

It's still not possible to change the color of the AI because of a Minecraft bug, the bug is already reported by me.

Survival version of this datapack: https://www.planetminecraft.com/data-pack/minecraft-ai-survival-edition/

Please report bugs if you found them :D
LOAD MORE LOGS

Create an account or sign in to comment.

1
07/06/2020 9:37 am
Level 1 : New Crafter
skythebro
skythebro avatar
This has been happening every time i start my server, nothing crashes or goes wrong but you know why this may be happening?

[15:34:26] [Worker-Main-12/ERROR]: Couldn't parse loot table ai:biome/nether
com.google.gson.JsonSyntaxException: Unknown biome 'minecraft:nether'
at net.minecraft.class_2090.method_17893(class_2090.java:158) ~[intermediary-server.jar:?]
at java.util.Optional.orElseThrow(Unknown Source) ~[?:1.8.0_241]
at net.minecraft.class_2090.method_9021(class_2090.java:158) ~[intermediary-server.jar:?]
at net.minecraft.class_205$class_206.method_885(class_205.java:58) ~[intermediary-server.jar:?]
at net.minecraft.class_205$class_206.method_517(class_205.java:41) ~[intermediary-server.jar:?]
at net.minecraft.class_5330$class_5333.deserialize(class_5330.java:83) ~[intermediary-server.jar:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[server.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:887) ~[server.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:952) ~[server.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:925) ~[server.jar:?]
at net.minecraft.class_4567.method_22560(class_4567.java:47) ~[intermediary-server.jar:?]
at java.util.HashMap.forEach(Unknown Source) ~[?:1.8.0_241]
at net.minecraft.class_4567.method_22563(class_4567.java:41) ~[intermediary-server.jar:?]
at net.minecraft.class_4567.method_18788(class_4567.java:23) ~[intermediary-server.jar:?]
at net.minecraft.class_4080.method_18790(class_4080.java:13) ~[intermediary-server.jar:?]
at java.util.concurrent.CompletableFuture.uniAccept(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source) ~[?:1.8.0_241]
at net.minecraft.class_4014.method_18365(class_4014.java:71) ~[intermediary-server.jar:?]
at net.minecraft.class_4014.method_18367(class_4014.java:70) ~[intermediary-server.jar:?]
at java.util.concurrent.CompletableFuture$UniCompletion.claim(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture.uniAccept(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture.postFire(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source) ~[?:1.8.0_241]
at net.minecraft.class_4014.method_18365(class_4014.java:71) ~[intermediary-server.jar:?]
at net.minecraft.class_4014.method_18367(class_4014.java:70) ~[intermediary-server.jar:?]
at java.util.concurrent.CompletableFuture$UniCompletion.claim(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture.uniAccept(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source) ~[?:1.8.0_241]
at java.util.concurrent.CompletableFuture.complete(Unknown Source) ~[?:1.8.0_241]
at net.minecraft.class_4014$1.method_18374(class_4014.java:53) ~[intermediary-server.jar:?]
at net.minecraft.class_4014$1.method_18352(class_4014.java:50) ~[intermediary-server.jar:?]
at java.util.concurrent.CompletableFuture.uniCompose(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.CompletableFuture$UniCompose.tryFire(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_241]
1
08/17/2020 9:35 am
Level 64 : High Grandmaster Programmer
E4ry
E4ry avatar
Bug is now fixed in this update :D
1
07/06/2020 11:26 am
Level 64 : High Grandmaster Programmer
E4ry
E4ry avatar
It's a small datapack bug, but it's not an important one, if you want it i will give you the solutation.
1
02/26/2020 10:24 pm
Level 13 : Journeyman Mountaineer
PyroSilver
PyroSilver avatar
I feel like Gideon might be a reference to the NETFLIX series, The Flash.
1
02/27/2020 7:38 am
Level 64 : High Grandmaster Programmer
E4ry
E4ry avatar
Yes it is, especially from legends of tomorrow
1
02/26/2020 10:24 pm
Level 13 : Journeyman Mountaineer
PyroSilver
PyroSilver avatar
If it isn’t, then I just posted a useless comment you won’t understand...
2
02/24/2020 5:26 amhistory
Level 56 : Grandmaster Programmer
Technodono
Technodono avatar
This is a really creative and clever daypack by using the scoreboards and a custom keyboard to make custom commands... That's something I'd love to try in one of my data-packs but maybe go with something simpler. Thank you for uploading this!
1
02/22/2020 4:23 pm
Level 64 : High Grandmaster Programmer
E4ry
E4ry avatar
This datapack only works in 1.15.2 or higher!
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome