Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MINECRAFT
- # Get player’s coordinates. Use x, y and z variables to do the exercises.
- position=player.position()
- x=position.get_value(Axis.X)
- y=position.get_value(Axis.Y)
- z=position.get_value(Axis.Z)
- # Exercise 1
- # Create an underwaterWorld function which will be called by using the “aquaman” command in chat.
- # After calling the function, the player should be locked in a huge water container made of GLASS and filled with WATER.
- # Use the blocks.fill() function.
- # Exercise 2
- # Create a drowned function with numberOfDrowned parameter and call it in the underwaterWorld function.
- # When calling the function we should specify the number of drowned we want to spawn.
- # We will use the parameter in a for loop in a range() function.
- # Exercise 3
- # Create an inventory function which will add a trident when calling the underwaterWorld function.
- # The trident is great for fighting underwater
- # Add spells which will improve the weapon
- # Unbreaking level 3 - increases durability of the weapon.
- # Channeling level 1 - During the storm, when hitting a mob, a lightning will hit them too.
- # Riptide level 3 - during rain, using the trident will get us fast transport.
- # Loyalty level 3 - the trident will come back to the player after they throw it.
- # Use functions like mobs.give() and mobs.enchant().
- # You can add other items useful in underwater combat.
- # Exercise 4
- # Create a coral function and call it in the underwaterWorld after creating the water container.
- # Use blocks.place and randpos() to place different corals in random places. Use for loop, too.
- # Coral names: TUBE_CORAL, BRAIN_CORAL, BUBBLE_CORAL, FIRE_CORAL, BUBBLE_CORAL_FAN
- # You can use an array to do this exercise
- # In the coral function create a coralArray array and add different corals to it.
- # Using two for loops, get corals from the array and place them in random places.
- # Exercise 5
- # The function changing the game mode
- # Create a gameMode function with the mode parameter. The function will be called in chat by writing ‘t’ and giving a parameter 0 or 1.
- # When we put 0, the game should be in survival mode and the player should get breathing underwater effect.
- # When we put 1, the game should be switched to creative mode.
- # Use if elif conditional statements.
- # The name of the effect is WATER_BREATHING. Use it in the mobs.apply_effect function.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement