Data Packs Other

Custom Block Framework

    • 5,929 views • 1 today
    • 172 downloads • 0 today
    • 5
    • 6
    • 5
    Amicdict
    Level 57 : Grandmaster System
    44
    I'm working on a Framework for Custom Blocks which will be used for static custom blocks

    How To Use
    To make a custom block. The Item has to:
    • Be a firework rocket.
    • Have the CustomBlockNBT Compound Tag.


    From there you can use the Custom Tags in the next spoiler below. And use regular Item NBT tags to customize the custom block.

    If You're making custom models... (This will ruin the suprise.)
    ..., keep in mind that the "custom block" is a mob spawner with an armor stand in it.




    Framework Block NBT Tags
    # List of Custom Tags

    (TAG_Compound) CustomBlockNBT - Framework block tags should be put in here.

    (TAG_String) CommandOnPlacement - Command that is executed upon placement of custom block. (Optional)
    (Note: Please reset the players placed_spawner and the command that does that in your placement function)

    (TAG_String) CommandWhenLookedAt - Command that is executed when looked at by a player. (NOTE: The entity that's used to execute is a marker armor stand with the tag "execute_looked_at_command". Optional)

    (TAG_Int) BlockModelData - Default integer loaded into the custom block's CustomModelData tag.




    (TAG_String) CommandOnDestruction - Command that is executed upon removal of custom block. (Optional)
    (Note: Please reset the players mined_spawner and the command that does that in your destruction function)



    (TAG_Compound) LootConditions - Stores conditions from loot tables. Generated after the custom block is destroyed.
    |
    |
    |–––––– (TAG_List) PassedConditions - List of condition names that passed.
    |
    |–––––– (TAG_Compound) ToolData - Item info of item used to mine custom block.
    |
    |
    –––-–

    (Boolean) KeepItemsContained - If true, will store contained items in CustomBlockNBT»Items. Otherwise, items will drop. Defaults to false.


    PassedConditions tag currently supports:
    • minecraft:survives_explosion

    Scoreboards (Will ruin the surprise.)
    • placed_spawner - Detection scoreboard that increments whenever a player places a custom block.
    • mined_spawner - Detection scoreboard that increments whenever a player mines a custom block.
    CompatibilityMinecraft 1.14
    Tags

    4 Update Logs

    Update #4 : by Amicdict 09/14/2019 8:15:56 pmSeptember 15, 2019 @ 12:15 am UTC

    -Added a new CommandInterval and BlockModelDataa tag (TAG_Int). More in custom_tags.txt and the Tutorial.
    LOAD MORE LOGS

      Have something to say?

    YalahelPvP
    09/16/2019 5:56 pm
    Level 3 : Apprentice Network
    history
    Do not speak good in English I can not use the datapack. It would take a tutorial video

    And, is your datapack compatible with transparent textures?

    Thank!
    1
    Amicdict
    09/16/2019 9:06 pm
    Level 57 : Grandmaster System
    It's not compatible with transparent or non solid full blocks. The model loads, but you also would be able to see the spawner.
    1
    Diranus
    09/08/2019 1:21 pm
    Level 1 : New Miner
    This doesn't worth a download.

    Needs alot of improvements. :(

    At first, there should be a simple working example of give command because I didn't get that CustomBlockNBT-Thingy right because I had no idea what this has to be set to.

    I had to take it apart to figure out how to do the give command for a custom block (the one that comes with the pack). I found a working command for that somewhere in the folders.

    Finally, I had that block and then I placed it. The custom block appeared. Looks nice. This was fine so far.

    I tried to place another of these beside the first one.... Buuuuuuuuuug.....

    Instead of placing it where I clicked (it was glorious empty air), it makes sparkles appear around the first block and then it gave me a another block item.

    One of five placements fail this way.

    If I click a block for placement which is not a full block, it fails every time and behaves very buggy.

    While building around with the example block, the command block interface popped up here and there. Annoying....

    After this bad experience, how to get a block that looks actually different from the first one? A short step-by-step tutorial would be nice.
    1
    Amicdict
    09/08/2019 2:59 pm
    Level 57 : Grandmaster System
    history
    Thanks for the constructive criticism. :)

    For the placement bug: This is an unfortunate downside to using fireworks. Using the firework in the positive axis replaces the block you clicked on, so I'm trying to find ways that I can fix it. Currently, I just snap the firework's direction to 90°, then teleport it forward if it's stuck in a block.

    Tutorial? If I can get this framework to work okay, then maybe.
    2
    Diranus
    09/08/2019 4:17 pm
    Level 1 : New Miner
    history
    > "Tutorial? If I can get this framework to work okay, then maybe."

    You flagged it as finished :).

    > This is an unfortunate downside to using firework.

    Yeah.. I wouldn't use it. :(

    Some data pack creators use named blast furnaces instead (i.e. ICY TNT Data Pack) to circumvent that at the cost of a not-so-nice placing (but you already have that ugly command block that appears everytime during placement for a short period ).
    2

    Welcome