458: Check storage list for an entry [Minecraft Map Making]
Membership:
Ep458: Checking if a storage list exists, and if a specific element is in that list.
00:00 Intro
00:30 Clear storage list
01:20 Add entry to storage
02:20 Check if storage list exists
04:20 Check if entry is in list
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:
Clear list:
IUN: data remove storage id:temp my_list
Add to list:
IUN: data modify storage id:temp my_list append value 1
Check if list exists:
IUN: execute if data storage id:temp my_list run say List exists
Check if entry is in list:
IUN: execute if data storage id:temp {my_list:[2]} run say Entry exists
Check if entry is NOT in list:
IUN: execute unless data storage id:temp {my_list:[2]} run say Entry doesn't exist