Mcpedl » Addons for Minecraft PE » Clocks and Debug Addon

Clocks and Debug Addon

Clocks and Debug Addon
Addons for Minecraft PE
This Function Pack adds 4 different clocks and a debug display with some information to your world. Additional to this, I added a Death-System with your last Death-Coordinates and a grave stone. And I created a One-Player-Sleep-System for Multiplayer (everything should work on Realms and LAN worlds exactly as in Singleplayer worlds).

Everything will be displayed above your hotbar, but only one Display can be shown at once.
To show the display you want, you need to run a function (for more information see the text below).
World Timer
This clock counts every second you played in a world and displays it in days, hours, minutes and seconds.
To display this clock, type this in your chat: /function world_timer

This clock shows the ingame daytime and counts every quarter of an hour.
Even when you sleep, the clock stops to count and is set to the correct time.
Also the current weather will be displayed at the right side: a sun/moon meas clear weather, a cloud with rain means raining and a cloud with a lightning means storming.
To display this clock, type this in your chat: /function clock

With this clock you can simply count the time you need for something.
type /function start in the chat to start it
type /function stop in the chat to stop it
type /function reset in the chat to reset it
To display this clock, type this in your chat: /function stopwatch

This clock is a timer, which means that you can adjust a time (in hours, minutes and seconds) and after you started the timer it counts down the time untill zero seconds.
The time must be adjusted with the scoreboard command (the exact command will be shown in the chat when you display the timer).
After you adjusted the time,
type /function start in the chat to start it
type /function stop in the chat to stop it
type /function reset in the chat to reset it
To display this clock, type this in your chat: /function timer


Debug Display
This display shows you some more information which can be important especially in survival mode:
- Clock again (with weather)
- the Biome you are in
- Compass and the coordinates direction you are facing
- Light level
- your Last-Death-Coordinates (for this I also added a death counter, which is 
   displayed as a sidebar-scoreboard)
- a Player-Counter near the death-cords
To display the debug display, type this in your chat: /function debug

I tested the normal version with my smartphone (5 inch). It`s display was too small to show the long debug-display.
So I added a second version for small devices, where the debug-display is a bit smaller:


Grave Stone: It spawns at the death postion from a died player and saves alle dropped items.
he grave has gravity, so it will fall down if you die in the air or under water, but I made it so that it will swim on lava if you die in lava.
Unfortunately the grave can`t get the name from the player who died (at the moment I found no way to solve this problem, except making a script and I didn`t want to add a script to the addon) and that`s the reason for the Player-Counter. Every player who joined the world/realm will get a player-number (for example "P 1" in your debug-display means "Player 1") and if a player dies, the grave will be named with "Player and the players number", so that the grave is related to this player. So the grave can only be opened and destroyed when the related player is in a radius of 3 blocks (but then every player can access the inventory or destroy the grave).
But there are still two problems I can`t fix:
1. When you destroy a grave without get out all items from it`s inventory before, it`s possible that some items get lost (so obviously it`s better you get out all items before you destroy the grave).
2. For every player-number I had to add specific commands and so maximum 50 different players should play on one world/realm. For all players with the number 51 or more, the Grave-System can be buggy.

Because of this two problems, I added the possibility to deactivate and activate the graves (normally it`s activated, for more information see the point below).

for player who want a bit more challenging survival gameplay I added thirst and temperature to the addon
You can turn this part off and on. Normally it`s deactivated.
To activate/deactivate it, go to your active world behavior packs. Click on the "Debug and Clocks Function" and then on the little gear. A little control panel will open, where you can choose between "More Survival" (means with thirst and temperature) and "Less Survival" (without thirst and temperature):



If you activate "More Survival", you will get information about your temperature and thirst in the chat every 20 seconds or you display them always above your hotbar with /function temp_thirst .


> If the thirst is too low you get negative effects, so it has to be refilled from time to time by standing in any water block or a cauldron with water.
In a desert/mesa, jungle and savanna or in the nether  you have to quench your thirst more often.

> If the temperature is too high or too low you also get negative effects.

temperature goes high:
in biomes:
- desert and mesa biome (at day)
- jungle (at day)
- savanna (at day)
- all nether biomes
near blocks:
- torch
- campfire
- lantern
- lit furnace
- lit blast furnace
- lit smoker
- magma block
- lava/flowing lava
- fire
- soul campfire
- soul lantern
- soul torch
- soul fire

temperature goes low:
in biomes:
- ice biome
- hills
- ocean
- every other biome (at night, jungle and savanna very slow)
- in caves
near blocks:
- snow/snow layer
- ice/packed ice/ blue ice
- water/flowing water and cauldron with water (in ice, hills and ocean biomes)

temperature goes to optimum:
- in every biome I didn`t mention before (at day)
- in the end
- water/flowing water and cauldron with water ( in every biome except in ice, hills 
   and ocean biomes)

  • hide all clocks and debug displays
    To hide all clocks, so that nothing will be displayed above your hotbar, type
    /function hide in your chat.

  • other information
    The world timer and the clock always count, even if you don`t display them.
    However this don`t work with the stopwatch and the timer. So when they count, but you change the clock, they don`t reset but stop counting untill you display them again.

    For Multiplayer I also added a One-Player-Sleep-System.

Supported Minecraft versions

  • 1.16.100
  • 1.16.201
  • 1.16.200
  • 1.16.101
  • 1.16



Votes: 0 | Rating: 0
Comments (0)
Users of Guests are not allowed to comment this publication.