398: Multiplayer multimode mines. [Minecraft Map Making]
Membership: / @infernaldevice
Ep398: Mines that players can place down and then switch between manual detonation or proximity detonation.
00:00 Intro
01:50 Setup
03:50 Give - coas
07:10 Give - mine
08:15 Controller - Id
09:45 Controller - throw
30:55 Controller - controller
55:30 Controller - proximity
58:00 Waffling
Version: 1.21
Commands, builds, hacks and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: / coppitj
Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: / discord
Commands used:
Setup:
IUN: scoreboard objectives add used_coas used:carrot_on_a_stick
CUA: scoreboard objectives add id dummy
CUA: scoreboard objectives add thrown_mine dropped:gray_dye
CUA: scoreboard objectives add state dummy
Give - COAS:
IUN: give @p carrot_on_a_stick[custom_data={mine:controller}]
Give - Mine:
IUN: give @p gray_dye[item_name='{"text":"Mine"}', custom_data={mine:item}]
Controller - ID:
RUA: execute as @a unless score @s id = @s id store result score @s id run scoreboard players add #idHolder id 1
Controller - Throw:
RUA: execute as @a[scores={thrown_mine=1..}] at @s as @e[type=item, sort=nearest] if items entity @s contents gray_dye[custom_data~{mine:item}] unless score @s id = @s id run scoreboard players operation @s id = @a[distance=..0.1] id
CCA: scoreboard players reset @a[scores={thrown_mine=1..}] thrown_mine
CUA: execute as @e[type=item, scores={id=0..}] if items entity @s contents gray_dye[custom_data~{mine:item}] at @s if predicate {"condition":"inverted", "term":{"condition":"entity_properties","entity":"this","predicate":{"stepping_on":{"block":{"blocks":"air"}}}}} run tag @s add set_mine
CCA: execute at @e[type=item, tag=set_mine] run summon block_display ~ ~ ~ {Tags:["mine", "mine_base"], block_state:{Name:"polished_tuff_slab"}, transformation:{left_rotation:[0f,0f,0f,1f], right_rotation:[0f,0f,0f,1f], translation:[-0.25f,0f,-0.25f], scale:[0.5f,0.3f,0.5f]}, Passengers:[{Tags:["mine","mine_top"], id:"block_display", block_state:{Name:"redstone_block"}, transformation:{left_rotation:[0f,0f,0f,1f], right_rotation:[0f,0f,0f,1f], translation:[-0.05f,0.1f,-0.05f], scale:[0.1f,0.1f,0.1f]}}]}
CCA: execute as @e[type=item, tag=set_mine] at @s as @e[type=block_display, tag=mine, sort=nearest, limit=2] unless score @s id = @s id run scoreboard players operation @s id = @e[type=item, tag=set_mine, distance=..0.1] id
CCA: execute as @e[type=block_display, tag=mine_base] unless score @s state = @s state run scoreboard players set @s state 0
CCA: kill @e[type=item, tag=set_mine]
Controller - Controller:
RUA: scoreboard players reset @a[scores={state=1..}] state
CUA: execute as @a[scores={used_coas=1..}] if items entity @s weapon.mainhand carrot_on_a_stick[minecraft:custom_data~{mine:controller}] run scoreboard players add @s state 1
CUA: execute as @a[scores={used_coas=1..}] if predicate {"condition":"minecraft:entity_properties","entity":"this","predicate":{"flags":{"is_sneaking":true}}} run scoreboard players add @s state 1
CUA: execute as @a[scores={state=1}] at @s as @e[type=block_display, tag=mine_base] if score @s id = @a[distance=...1, limit=1] id run tag @s add change_state
CUA: execute as @a[scores={state=1}] at @s as @e[type=block_display, tag=change_state, sort=nearest, limit=1] store success score @s state if score @s state matches 0
CUA: execute at @e[type=block_display, tag=change_state, scores={state=0}] as @e[type=block_display, tag=mine_top, sort=nearest, limit=1] run data merge entity @s {block_state:{Name:"redstone_block"}}
CUA: execute at @e[type=block_display, tag=change_state, scores={state=1}] as @e[type=block_display, tag=mine_top, sort=nearest, limit=1] run data merge entity @s {block_state:{Name:"emerald_block"}}
CUA: tag @e[type=block_display, tag=mine_base] remove change_state
CUA: execute as @a[scores={state=2}] at @s as @e[type=block_display, tag=mine_base] if score @s id = @a[distance=...1, limit=1] id run tag @s add explode_check
CUA: execute as @a[scores={state=2}] at @s run tag @e[type=block_display, tag=explode_check, sort=nearest, limit=1, scores={state=0}] add explode_me
CUA: execute at @e[type=block_display, tag=explode_me] run playsound entity.generic.explode master @a ~ ~ ~ 1 1 0
CCA: execute at @e[type=block_display, tag=explode_me] run particle explosion ~ ~0.5 ~ 0.3 0.3 0.3 0.2 100
CCA: execute at @e[type=block_display, tag=explode_me] as @a[distance=0..3] run damage @s 6 explosion by @e[tag=explode_me,limit=1]
CUA: execute at @e[type=block_display, tag=explode_me] run kill @e[type=block_display, tag=mine, sort=nearest, limit=2]
CUA: scoreboard players reset @a[scores={used_coas=1..}] used_coas
Controller - Proximity:
RUA: execute as @e[type=block_display, tag=mine_base, scores={state=1}] at @s if entity @a[distance=..3] run tag @s add explode_me
Other Videos By Infernal Device
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.