454: Using modulo with scores [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 0:00
249 views
14


Membership:

Ep454: Using modulo to check whether one score can be divided by another score without leaving a remainder.

00:00 Intro
00:45 Setup
01:05 Set players score
01:40 Check players score

Idea from: Pace

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:

Setup:
IUN: scoreboard objectives add test dummy

Set player score:
IUN: scoreboard players set @p test 40

Check:
IUN: scoreboard players set multiple_of test 20
CUA: scoreboard players operation score_to_check test = @p test
CUA: scoreboard players operation score_to_check test %= multiple_of test
CUA: execute if score score_to_check test matches 0 run say It is a multiple
CUA: execute unless score score_to_check test matches 0 run say It is NOT a multiple







Other Statistics

Minecraft Statistics For Infernal Device

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