WhatIsThis - Identify the block you are looking at | 1.13 - 1.16 | Multi-Language support | 3.0

Easily get the name of a block and the items it drops displayed in your local language

  1. steve4744
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Languages Supported:
    All Minecraft client languages supported
    What Is This - Identify the block you are looking at
    Easily get the name of the block you are looking at and the items it drops

    2020-06-30_11.18.42.png

    Description

    WhatIsThis
    is a lightweight utility plugin aimed at providing block information directly to the player without the need to open a UI. This can be helpful in Survival mode to know what a block is without having to break it first, or while looking at other people's builds in Creative mode.

    Inspired by Forge mods such as WAWLA (What Are We Looking At), WAILA (What Am I Looking At) and HWYLA (Here's What You're Looking At), but without the distraction of the display on the screen constantly, and without utilising PlayerMoveEvent or constantly checking the block being looked at.

    Simply by right-clicking the block with a STICK (default) or running command /wt while looking at a block, the block type and the items it drops will be briefly displayed on the side of the screen. Both options can be used underwater as well as on land.

    2019-05-06_13.19.12.png

    There is also the option to have the block information displayed on the ActionBar or BossBar. Using these methods, only the name of the block is displayed and not the dropped items.

    The ActionBar display is probably the most attractive and least intrusive of the display methods. The text colour can be set in the config.yml file.

    The text colour and the colour of the BossBar can be set in the config.yml file.

    composter.png


    Using the plugin




    The above is a quick 90 second video showing the plugin in use in the 1.16 nether.

    You must have a clear view of the block being looked at when running the /wt command. The range is currently set to 10 blocks - I plan to make this configurable in a future release.

    The ability to right-click with an item can be toggled OFF and ON using the /wt toggleclick command, or disabled in the config.yml if not required.

    The item used to select the block is also configurable. The default item is a STICK. Any item can be used, including an empty hand, although the plugin does not cancel any events that might be triggered by right-clicking with the item such as a "block place" event or opening a door or chest, so it doesn't interfere with the normal mechanics of the game.

    If using the scoreboard display option, the name and number of items dropped reported by the plugin are those obtained from Block#getDrops(). Where the drops are variable (e.g. the number of SEEDS dropped by WHEAT) it returns either a range (e.g. 0 -> 3) or what could be dropped by breaking the block, not necessarily what you will get on breaking the block (e.g. number of MELON_SLICEs from a MELON).


    Video Showcase
    Thanks to ericbarbwire for creating this video of the plugin.





    Dependencies
    This plugin is supported on Minecraft/Spigot 1.13 to 1.16+.
    Slimefun4 (Optional)

    Thanks to the contribution from TheBusyBiscuit, items and machines from the Slimefun4 plugin are also supported.

    2019-10-02_00.45.27.png


    Commands & Permissions
    /wt - identifies the block being looked at
    /wt info - information about the plugin
    /wt reload - reload the config file (requires whatisthis.admin permission)
    /wt toggleclick - toggle right-click ON/OFF (requires whatisthis.admin permission)

    whatisthis.use - default true
    whatisthis.admin - default op

    2019-05-06_16.55.45.png


    Multi-Language Options
    All Minecraft languages are supported. The player's own language (which is set locally in the Minecraft launcher) is used to automatically display the name of the block and the items it drops when broken. The text for the word "Drops" can be changed from English by manually changing the text in the config.yml.

    If you know that you will only need certain language files, then those required can be set in the config.yml - see example config below.

    As the Scoreboard has a limit of 40 characters, item names which are too long will be truncated to fit.

    If the name has not been set in the local language file, then it will revert to "en_us" and display the English equivalent.

    es418x235.png fr418x235.png


    Configuration
    Code (YAML):
    # Check for new version
    check_for_update
    : true
    # Allow right-click with item.  Use AIR or NONE for no item
    use_right_click
    :
      enabled
    : true
      item
    : STICK
    # Translatable text
    text
    :
      drops
    : Drops
    # To enable the loading of specific languages only, add them to a list as follows:
    #LoadLanguage = [en_us, es_es, cy_gb]
    # Or
    #LoadLanguage:
    #- en_us
    #- es_es
    #- cy_gb
    # If you want to load all the languages, add "all" to the list:
    LoadLanguage
    :
    - all
    # Enable the preferred method(s) to display the block info
    Display
    :
      scoreboard
    :
        enabled
    : true
      actionbar
    :
        enabled
    : false
        textcolor
    : WHITE
      bossbar
    :
        enabled
    : false
        textcolor
    : WHITE
        barcolor
    : GREEN
     


    Installation
    1. Download WhatIsThis.jar
    2. Copy to your server's 'plugins' folder
    3. Restart your server

    size test.png


    Metrics

    This plugin uses bstats to collect anonymous plugin metrics. The data is collected once every 30mins and is submitted asynchronously to the bstats server. The plugin doesn't collect any custom data, just the default bstats data which is listed on bstats.org. The metrics class is also open source and can be viewed here, or in the plugin source on GitHub.

    Metrics can of course be disabled on your server but I would appreciate it if it was left enabled as the information it provides gives me an idea of how many servers are using the plugin, what versions are in use, etc. and is an incentive for me to put more of my time into development of my plugins.

    The pretty graphs and data from the plugin can be viewed here:
    https://bstats.org/plugin/bukkit/WhatIsThis

    2019-02-15_18.15.49.png


    Issues and source code

    Join our Discord server to make it easier to discuss issues and share information.
    [​IMG]

    The source code is on GitHub. As well as Discord, any issues or suggestions can be raised on the Issues tab in the GitHub repository.

Recent Updates

  1. Version 3.0 update
  2. Version 2.9 update
  3. Version 2.8 update

Recent Reviews

  1. LoneDev
    LoneDev
    5/5,
    Version: 2.2
    Really interesting resource, I love that since it reminds me of Forge mods I used to install on my old server
    1. steve4744
      Author's Response
      Thanks for the review. I used to use the same forge mods, they were some of the first ones I'd download on a new server.
  2. qsefthuopq
    qsefthuopq
    5/5,
    Version: 2.0
    Great plugin.It is easy to use and I have no need to translated it



    .
    1. steve4744
      Author's Response
      Thanks for the review.
  3. ScienceCodeDE
    ScienceCodeDE
    5/5,
    Version: 1.0
    Nice. Like Wawla/Waila. It will be cool if there is function to set the text at the bossbar. I dont know if multiple boss bars are possible, but I think its possible, because I saw an picture.

    - SC
    1. steve4744
      Author's Response
      Thanks for the review.
      It uses the scoreboard to display the info not bossbar, but yes I'd like to add some improvements in the next releases.