416: Using items to increase a score. [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 0:00
149 views
12


Membership:
Ep416: Using items to increase a score, maybe for use as money or something similar.

00:00 Not Intro
00:35 Setup
01:30 Give item
02:40 Controller
10:10 Waffling

Episode 321 - Eat any item:    • 321: Eat any item and right-click det...  

Version: 1.21

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

Check out my collabs on Coppit's channel:

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.

Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" and "less than" with the appropriate angled bracket.

Commands used:

Setup:
IUN: scoreboard objectives add points dummy
CUA: scoreboard objectives add points_to_give dummy
CUA: scoreboard objectives add used_coas used:carrot_on_a_stick

Give:
IUN: give @p carrot_on_a_stick[custom_data={point:give, points:1}]

Controller:
RUA: execute as @a[scores={used_coas=1..}] if items entity @s weapon.mainhand carrot_on_a_stick[minecraft:custom_data~{point:give}] store
result score @s points_to_give run data get entity @s SelectedItem.components.minecraft:custom_data.points

CCA: scoreboard players operation @a[scores={used_coas=1..}] points += @a[scores={used_coas=1..}] points_to_give
CUA: item replace entity @a[scores={used_coas=1..}] weapon.mainhand with air
CUA: scoreboard players reset @a[scores={used_coas=1..}] used_coas
CUA: scoreboard players reset @a[scores={points_to_give=1..}] points_to_give

Temporary command to show points on actionbar:
RUA: title @p actionbar [{"text":"Points: ", "color":"green"},{"score":{"name":"@p","objective":"points"}}]







Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 181,722 views spread across 860 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.