CUSTOM BLOCKS TUTORIAL

Command to summon a custom block:

 Paste this command inside a command block to summon a custom block or paste it on mcstacker.net to edit it as shown in the video.


summon item_display ~ ~-.5 ~ {Rotation:[180F,0F],Tags:["CUSTOMBLOCK1"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,1f,0f],scale:[2f,2f,2f]},item:{id:"minecraft:player_head",Count:1b,tag:{SkullOwner:{Id:[I;1118312626,-1976352469,-1783681714,-8110703],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzZkZDc3Mjc0ZGQ1ZDRkYWMwMzhkNmViN2E2ZDlhYWMzNmExOWNlN2RkNTM0MTk2NDAyMmFmYjViNmNmZGExZSJ9fX0="}]}}}}}


Custom block spawn egg /give command:

 Paste this command inside a command block and then activate it to give yourself the special custom block spawn egg. Please note:it won't work if you don't set up the line of commands shown at the bottom of this page!


give @p allay_spawn_egg{display:{Name:'{"text":"Custom Block Spawn Egg","color":"yellow","underlined":true}',Lore:['{"text":"Use to Summon","color":"#FFEE00"}','{"text":"Custom Blocks","color":"#FFEE00"}']},Enchantments:[{}],EntityTag:{id:"minecraft:snowball",Tags:["BLOCKSPAWNER1"]}} 1



Custom Block Spawn Egg mechanics commands:

Set up a line of command blocks as shown down here or in the video.

Websites you'll need to generate and edit custom blocks:


mcstacker.net

&

minecraft-heads.com

kill @e[tag=BLOCKSPAWNER1]​

execute at @e[tag=BLOCKSPAWNER1] run summon item_display ~ ~ ~ {Rotation:[180F,0F],Tags:["CUSTOMBLOCK2"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,1f,0f],scale:[2f,2f,2f]},item:{id:"minecraft:player_head",Count:1b,tag:{SkullOwner:{Id:[I;-502488242,-148550733,-1920890262,-699765286],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjVjMjkzNjU4OWUxMTM1M2JjMDgyNTc1Mjg4OTNkZjhmOTNiNThiNjMyY2Q5OGE5NGI0ZmJlN2NlODM5ZDA2NyJ9fX0="}]}}}}}​

execute as @e[tag=CUSTOMBLOCK2] at @s if block ~ ~ ~ air run kill @s​

execute at @e[tag=BLOCKSPAWNER1] run setblock ~ ~ ~ barrier​

Tutorial viewed            times

This small command modification allows you to add custom blocks in your vanilla Minecraft Java worlds. It was made in 1.20.1. It might or might not work in other versions.