450: Simple class based items [Minecraft Map Making]

Subscribers:
3,590
Published on ● Video Link: https://www.youtube.com/watch?v=pjeClQyBhaU



Duration: 0:00
539 views
28


Membership:

Ep450: Making items for different classes that give buffs and can't be used by other classes.

Idea from Discord by: aggiephnx13

00:00 Intro
00:25 Give warrior item
03:30 Give archer item
05:00 Switching class
06:20 Controller remove non class items

Version: 1.21

Commands, builds, hacks and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel:

The Discord server I am usually on: https://discord.gg/amU84KykEu

The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.

Commands used:

Give warrior item:
IUN: give @p iron_sword[custom_data={class_item:true, warrior:true}, attribute_modifiers=[{id:"max_health",type:"generic.max_health",amount:10,operation:"add_value",slot:"hand"}], enchantments={levels:{"minecraft:vanishing_curse":1}}]

Give archer item:
IUN: give @p bow[custom_data={class_item:true, archer:true}, attribute_modifiers=[{id:"movement_speed",type:"generic.movement_speed",amount:0.2,operation:"add_value",slot:"hand"}],enchantments={levels:{"minecraft:vanishing_curse":1}}]

Controller:
RUA: clear @a[tag=warrior] *[custom_data~{class_item:true}, !custom_data~{warrior:true}]
CUA: clear @a[tag=archer] *[custom_data~{class_item:true}, !custom_data~{archer:true}]