MCreator 2021.1: Setting Variables With Commands

Subscribers:
13,300
Published on ● Video Link: https://www.youtube.com/watch?v=SOtp1rB7Dts



Minecraft
Game:
Minecraft (2011)
Duration: 23:51
1,133 views
23


Today we will be taking a look on how we can use the data command with the execute command to set custom tile entity block variables.

Key things we used.
- execute command.
- data command.
- setblock command.
- if condition.
- unless condition.
- run argument.
- custom tile entities.

► CHAPTERS
0:00 - Intro
0:10 - Learning The Basic Commands
9:48 - Using The Data Command With Forge Blocks
15:16 - The Element Settings
22:55 - One Tick Delay

►COMMANDS
// DATA POWERED PASTE FRIENDLY COMMANDS

execute unless block ~-1 ~ ~ minecraft:redstone_wire[power=0] if block ~-1 ~ ~ minecraft:redstone_wire[east=side] run data modify block ~ ~ ~ ForgeData.PowerEast set value 1

execute unless block ~1 ~ ~ minecraft:redstone_wire[power=0] if block ~1 ~ ~ minecraft:redstone_wire[west=side] run data modify block ~ ~ ~ ForgeData.PowerWest set value 1

execute unless block ~ ~ ~-1 minecraft:redstone_wire[power=0] if block ~ ~ ~-1 minecraft:redstone_wire[south=side] run data modify block ~ ~ ~ ForgeData.PowerSouth set value 1

execute unless block ~ ~ ~1 minecraft:redstone_wire[power=0] if block ~ ~ ~1 minecraft:redstone_wire[north=side] run data modify block ~ ~ ~ ForgeData.PowerNorth set value 1

// DATA UNPOWERED PASTE FRIENDLY COMMANDS

execute if block ~-1 ~ ~ minecraft:redstone_wire[power=0,east=side] run data modify block ~ ~ ~ ForgeData.PowerEast set value 0

execute if block ~1 ~ ~ minecraft:redstone_wire[power=0,west=side] run data modify block ~ ~ ~ ForgeData.PowerWest set value 0

execute if block ~ ~ ~-1 minecraft:redstone_wire[power=0,south=side] run data modify block ~ ~ ~ ForgeData.PowerSouth set value 0

execute if block ~ ~ ~1 minecraft:redstone_wire[power=0,north=side] run data modify block ~ ~ ~ ForgeData.PowerNorth set value 0

►TUTORIAL REQUESTS
Got a tutorial suggestion? Share it with me on GitHub and it may be made in the future! https://github.com/MCreator-Examples/Feedback/issues

► SERIES
In this series, I create community suggestions from scratch using the MCreator program then make tutorials on how to set up the project for your own mods. Some projects are more complex than others but I aim to make them easy for everyone to follow along. These videos are also a collaboration with Pylo the development company that makes MCreator.

► OFFICIAL SITES
● NWTG Website
https://www.northwesttreesgaming.com
● Discord Server Page
https://www.northwesttreesgaming.com/discord

► TAGS
#NorthWestTreesGaming
#MCreator
#MinecraftMods
#MinecraftForge







Tags:
northwesttrees
gaming
nwtg
mcreator
tutorial
data
commands
command
setblock
execute
tile
entity
forge



Other Statistics

Minecraft Statistics For NorthWestTrees MCreator

There are 2,645,813 views in 570 videos for Minecraft. This game accounts for over 5 days of watchable video on his channel, or 89.53% of the total watchable video for Minecraft on NorthWestTrees MCreator's YouTube channel.