Skip to content

Instantly share code, notes, and snippets.

@d3v1an7
Created January 25, 2021 07:31
Show Gist options
  • Save d3v1an7/efa831775b37d9a39cc3548583bd3654 to your computer and use it in GitHub Desktop.
Save d3v1an7/efa831775b37d9a39cc3548583bd3654 to your computer and use it in GitHub Desktop.
Minecraft stuff for the kiddos
# Make fun caves by walking around
# Repeat/Unconditional/Always Active
execute @a ~ ~ ~ fill ~-5 0 ~-5 ~5 250 ~5 air 0 replace stone 0
# Repeat/Unconditional/Always Active
execute @a ~ ~ ~ fill ~-5 0 ~-5 ~5 250 ~5 air 0 replace dirt 0
# Repeat/Unconditional/Always Active
execute @a ~ ~ ~ fill ~-5 0 ~-5 ~5 250 ~5 sealantern 0 replace stone 3
# Sand trap (dig a hole under the coordinates, have 2 layers of spider web after 1 block of air, then lava at the bottom)
# Activate trap
# Repeat/Unconditional/Always Active
testfor @e[x=-10,y=68,z=35,r=2]
# Surprise!
# Chain/Conditional/Always Active
execute @p -10 68 35 detect ~ ~-1 ~ grass -1 fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 sand
# Reset trap
# Repeat/Unconditional/Always Active
execute @p -10 68 35 detect ~ ~-1 ~ air -1 fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass
# Clone chest that contains item/s you'd like to duplicate, and drop it at players feet
# Impulse/Unconditional/Needs Redstone
execute @p ~ ~ ~ clone 1899 71 19 1899 71 19 ~ ~ ~
# Destroy the chest, effectively adding the items to the player
# Chain/Conditional/Always Active
execute @p ~ ~ ~ setblock ~ ~ ~ air 0 destroy
# Remove the destroyed chest
# Chain/Conditional/Always Active
kill @e[type=item,name=chest]
WIP
Do thing for named thing
# This works if arrow is dropped, but not shot
# Repeat/Unconditional/Always Active
execute @e[type=item,name=Pew] ~ ~ ~ summon lightning_bolt ~ ~ ~
# This works, but for all arrows
# Repeat/Unconditional/Always Active
execute @e[type=arrow] ~ ~ ~ summon lightning_bolt ~ ~ ~
# Do something while arrow in air
# Repeat/Unconditional/Always Active
execute @e[type=arrow] ~ ~ ~ testforblock ~ ~-1 ~ air
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment