Craft Presents for 1.13.2/1.16.3 0.1

Craft a Present for Your Friend!

  1. Jack_Fudson
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.13
    • 1.16
    Source Code:
    https://github.com/ye-yu/sp-craft-present
    Watch the demo here:


    Here's how to make a present:
    1. Get a crafting table, 8 papers, and any dye.
    2. Open the crafting table.
    3. Put the dye in the middle of the crafting slot and each paper at each of the other slots
    4. Congratulation! You just made an empty present!
    Here's how to fill in the present:
    1. Right-click on the present to view a single row inventory GUI.
    2. Put your present items into the top row of the slots.
    3. Exit from the GUI.
    Here's how to open the present:
    1. Place the present into the world.
    2. Mine the present!
    3. Yay! A present!
    Each present item will return its present content and (1 - 4) papers.

    Tested versions: 1.13.2 and 1.16.3
    Plugin should work for any version between 1.13.2 and 1.16.3, but do include the error message at pastebin if there is any error.

    Future plan:
    1. Separate plugin for 1.8 - 1.12
    2. Provide an option to store data to a database instead
    3. Verbose logging or console/file/database
    Hmm.. I wonder what would happen if you put the present into its own slot...

    Debug:

    Ingredients across versions may differ. Refer to the list below for the dye ingredient of any present block.

    Format: COLOR("1.16.2 material name", "alternative old material name")

    Code (Java):
        BLACK("BLACK_DYE", "INK_SAC"),
        BLUE("BLUE_DYE", "LAPIS_LAZULI"),
        BROWN("BROWN_DYE", "COCOA_BEANS"),
        CYAN("CYAN_DYE"),

        GRAY("GRAY_DYE"),
        GREEN("GREEN_DYE", "CACTUS_GREEN"),
        LIGHT_BLUE("LIGHT_BLUE_DYE"),
        LIGHT_GRAY("LIGHT_GRAY_DYE"),

        LIME("LIME_DYE"),
        MAGENTA("MAGENTA_DYE"),
        ORANGE("ORANGE_DYE"),
        PINK("PINK_DYE"),

        PURPLE("PURPLE_DYE"),
        RED("RED_DYE", "ROSE_RED"),
        WHITE("WHITE_DYE", "BONE_MEAL"),
        YELLOW("YELLOW_DYE", "DANDELION_YELLOW");
     
    If you are using this plugin on your server, please leave down you IP :], I would like to know how it works on other server.

    Disclaimer: All player heads are obtained from https://minecraft-heads.com/custom-heads/search?searchword=present
    Thanks to NBTEditor utility class creator too. Resources: https://www.spigotmc.org/threads/1-...s-mobs-and-tile-entities.269621/#post-2639984
    Namrod98 and OnyxianSoul like this.

Recent Updates

  1. Craft Presents for 1.13.2/1.16.3