In this video, I show you how to make a plugin that uses OpenAI’s easy to use AI to have meaningful conversations with an NPC in Minecraft. The NPC does not pull from a script, it pulls from a language model known as GPT-3 davinci that has been trained on large language datasets. It is currently the most advanced form of AI that understands language right now.
Code: https://github.com/Spigot-Plugin-Development-Tutorial/ai-npc
OpenAI: https://beta.openai.com/docs/introduction
Java Lib: https://github.com/TheoKanning/openai-java
Citizens: https://citizensnpcs.co/
AdventureLib: https://docs.adventure.kyori.net/platform/index.html
Join the Community! – https://discord.gg/cortexdev
Timestamps:
0:00 – Showcase Intro
2:43 – Explanation
6:34 – Another Demo of the Plugin
9:40 – Figuring this out on OpenAI Playground
14:15 – Beginning to code the plugin
14:54 – Installing Citizens
17:03 – Installing the OpenAI Java Library
20:10 – Installing Adventure Lib
20:50 – Setting up the main class
22:00 – Citizens Wiki
23:00 – Creating the command
25:30 – Citizens Traits and making one
31:00 – An event handler for the NPC interaction
36:00 – An event handler for talking
41:40 – Setting up on OpenAI Playground
45:50 – Applying the AI settings in our Java code
47:35 – Need an API key
50:30 – Getting the AI response
56:55 – Finishing Up
1:00:00 – Testing the Plugin
Want to Support the Channel?
– Become a Member: https://www.youtube.com/KodySimpson/join
– Buy some swag: https://www.youtube.com/KodySimpson/store
– PayPal: https://www.paypal.com/paypalme/kodysimpson
My Socials:
Github: https://github.com/KodySimpson
Twitter: https://twitter.com/kodysimp
More Videos coming soon.
Leave a comment for any future video suggestions.