184: Item with On/Off attributes. [Minecraft Map Making]

Subscribers:
3,860
Published on ● Video Link: https://www.youtube.com/watch?v=48AOM4W5aIY



Minecraft
Game:
Minecraft (2011)
Duration: 9:33
159 views
22


Ep184: Making an item that toggles between an On and Off state. When On it gives the player a speed boost.

Java Version: 1.19

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

Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: 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:

Setup:
IUN: scoreboard objectives add usedStick used:carrot_on_a_stick
CUA: scoreboard objectives add switch dummy

Give item:
IUN: give @p carrot_on_a_stick{switch_to:2,display:{Name:'{"text":"Speed: Off"}'}}

Controller:
RUA: execute as @a[scores={usedStick=1..}] store result score @s switch run data get entity @s SelectedItem.tag.switch_to
CUA: item replace entity @a[scores={switch=1}] weapon with carrot_on_a_stick{switch_to:2,display:{Name:'{"text":"Speed: Off"}'}}
CUA: item replace entity @a[scores={switch=2}] weapon with carrot_on_a_stick{switch_to:1,display:{Name:'{"text":"Speed: On"}'},AttributeModifiers:[{Slot:"mainhand",AttributeName:"generic.movement_speed",Name:"generic.movement_speed",Amount:0.5,Operation:0, UUID:[I; 10, 10, 10, 10]}]}
CUA: scoreboard players reset @a usedStick
CUA: scoreboard players reset @a switch




Other Videos By Infernal Device


2023-09-10188: Horn of Fangs. [Minecraft Map Making]
2023-09-08187: Mario Thwomp - basic prototype. [Minecraft Map Making]
2023-09-06017 - Fusion in the End!. [Run for your Life. Modded Minecraft Series]
2023-09-05186: Vampire Sword. [Minecraft Map Making]
2023-09-05016 - Crafting grind. [Run for your Life. Modded Minecraft Series]
2023-09-04015 - Infernal the Planeswalker. [Run for your Life. Modded Minecraft Series]
2023-09-01014 - New home and a visit from the Gaia Guardian. [Run for your Life. Modded Minecraft Series]
2023-08-31013 - Wither slapping. [Run for your Life. Modded Minecraft Series]
2023-08-30185: Teleport a tagged player to coordinates in data storage. [Minecraft Map Making]
2023-08-30012 - Storage sorting and some bone growing. [Run for your Life. Modded Minecraft Series]
2023-08-27184: Item with On/Off attributes. [Minecraft Map Making]
2023-08-25011 - A lovely picnic in the Nether. [Run for your Life. Modded Minecraft Series]
2023-08-23010 - Preparing for the Loony Farm. [Run for your Life. Modded Minecraft Series]
2023-08-22009 - Getting the grinder going. [Run for your Life. Modded Minecraft Series]
2023-08-22183: Prop Hunt [Updated] 1.19.4. Change into the block your holding. [Minecraft Map Making]
2023-08-21008 - Exploding chickens for progress. [Run for your Life. Modded Minecraft Series]
2023-08-18007 - Hmm, curvy blocks. Let's decorate a little. [Run for your Life. Modded Minecraft Series]
2023-08-17006 - Why didn't I save a zombie head?. [Run for your Life. Modded Minecraft Series]
2023-08-17005 - We need power!. [Run for your Life. Modded Minecraft Series]
2023-08-16182: Prop Hunt. A minigame concept mechanic. [Minecraft Map Making]
2023-08-15004 - I made a hole. [Run for your Life. Modded Minecraft Series]



Tags:
minecraft
adventure map
map making
commands
command blocks
1.18
custom commands
redstone
map ideas
map suggesstions
custom maps
1.19



Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 182,428 views spread across 865 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.