Skip to content

Instantly share code, notes, and snippets.

@seantibor
Created February 7, 2020 15:47
Show Gist options
  • Save seantibor/ae5d821ea0a24823d3d6b90550f6282f to your computer and use it in GitHub Desktop.
Save seantibor/ae5d821ea0a24823d3d6b90550f6282f to your computer and use it in GitHub Desktop.
Python Aquarium Code for MineCraft
def item_interacted_trident():
blocks.fill(SANDSTONE,
pos(5, -1, -10),
pos(12, -1, 10),
FillOperation.REPLACE)
blocks.fill(GLASS,
pos(5, 0, -10),
pos(12, 7, 10),
FillOperation.REPLACE)
blocks.fill(WATER, pos(6, 0, -9), pos(11, 7, 9), FillOperation.REPLACE)
for index in range(4):
for fish in [PUFFERFISH,
SILVERFISH,
TROPICAL_FISH,
DOLPHIN]:
mobs.spawn(fish, positions.random(pos(6, 0, -9), pos(11, 6, 9)))
for coral in [BRAIN_CORAL, FIRE_CORAL_FAN, TUBE_CORAL, HORN_CORAL_FAN]:
blocks.place(coral, positions.random(pos(6, 0, -9), pos(11, 0, 9)))
player.on_item_interacted(TRIDENT, item_interacted_trident)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment