Today we are talking about dead bodies! Wait... I mean sleeping NPCs! This is an awesome feature to add to your minigames! It is fairly easy however with all the changes with Spigot it can be challenging. I did first code this in 1.16, the code for that version is in a Pastebin below. I hope you all do enjoy this video, I haven't recorded a coding tutorial in a while so it may take a little to get back into my tutorial rhythm :)
0:00 Intro
0:58 Plugin Showcase
2:10 Starting the Project
4:20 Creating NPC Textures
7:05 Creating Corpse
9:45 Hiding NPC Nametag
12:52 Pose & Overlays
15:58 Fall Position
17:29 Sending Packets
22:02 Finishing up the Project
23:13 Showcase & Ending
➼ 1.16 R3 Corpse code: https://pastebin.com/KS6wpQDi
➼ Want more videos?
Become a Patreon support to gain access to more videos!
➼ Get more involved:
Patreon: / codedred
Discord: / discord
Twitter: / devcodedred
Twitch: / coded_red
----- Links -----
Download IntelliJ: https://www.jetbrains.com/toolbox-app/
Download Spigot: https://getbukkit.org/download/spigot
Build Spigot: https://www.spigotmc.org/wiki/buildto...
Check out my plugins:
https://www.spigotmc.org/resources/au...
[GITHUB CODE]
GitHub repo code is exclusively for Patron Supporters! For only $3 you can view all source code from videos! / codedred
Music:
Track: Minute Mix - ChillOutMedia
Music provided by Chill Out Records - No Copyright Music.
Listen: https://www.chilloutmedia.com/download