Spigot Plugin Development - 75 - Bodied w/ NMS | Part 2 [CHALLENGE]

Channel:
Subscribers:
32,299
Published on ● Video Link: https://www.youtube.com/watch?v=OK5L0LIRbys



Duration: 1:07:53
2,567 views
67


In this episode of the Spigot MC Plugin series, we finish making the core features of the Bodied plugin. This plugin uses NMS to spawn dead body NPCs that expire after 10 seconds if not claimed. If claimed, all of the items will shoot up into the air and you can take them. We use many different advanced techniques to finish this. All that is left is to setup configuration. #Spigot #SpigotTutorial #MinecraftNMS

My code: https://github.com/Spigot-Plugin-Development-Tutorial/bodied
Join the Community! - https://discord.gg/cortexdev

Want to Support the Channel?
Become a Member: https://www.youtube.com/channel/UC_LtbK9pzAEI-4yVprLOcyA/join
or: https://paypal.me/kodysimpson?locale.x=en_US

My Socials:
Blog: https://simpson.hashnode.dev/
Github: https://github.com/KodySimpson
Instagram: https://www.instagram.com/kody_a_simpson/
Twitter: https://twitter.com/kodysimp

0:00 Hey whats up guys back again
0:15 What we did last time
0:58 Demonstration of what we are going to be making
3:10 Change the skin of the dead body to the player that died
5:40 Testing out if the NPC has the player's skin
6:05 Thinking about our approach
7:30 Coding the Body Management System
20:15 Creating the task that removes the Body
29:50 Going over what we did
30:10 Testing out the removal of the body
30:50 Why is everything null in the array
32:00 Removing all the nulls out of the array
33:45 Giving the items back to the player
35:55 Test out if it gives the items back
36:30 How are we going to create the animation
37:25 Coding the NPC animation
41:50 Testing out the animation
42:38 Going over how to stop the animation
43:00 Coding the stopping of the animation
43:55 Testing out if the animation stops
45:30 Coding the removal of the NPC
47:00 Testing out if the NPC gets removed
47:30 Coding the giving of the items when right click on NPC
48:00 Figuring out how to listen for NPC interaction
50:34 CHALLENGE TIME!
52:05 The hacky way of getting the interaction
52:45 Coding the armor stands
54:40 Testing out if the armor stand gets spawned
55:50 Adding the rest of the armor stands
56:30 Testing out if all the armor stands are getting spawned
56:50 The interaction of the armor stands
1:03:45 Testing out if we can get the items out of the NPC
1:04:08 Adding an animation so the items get splatted out of the NPC
1:05:05 Testing out the "cool" animation
1:06:20 Outro, also get swag by being a Member

More Videos coming soon.
Leave a comment for any future video suggestions.







Tags:
programming tutorial