Code (Text):
#Custom block name
barrel:
#Display Entities of a given block.
display:
#Command to create entities for block display (models must be created on the https://block-display.com/bdengine). When creating a block, you must specify the command to display
spawn-command:
- /summon block_display ~-0.5 ~-0.5 ~-0.5 {Passengers:[{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[1.0000f,0.0000f,0.0000f,0.0000f,0.0000f,1.0000f,-0.9202f,0.3750f,0.0000f,1.7321f,0.5312f,-1.1000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[1.0000f,0.0000f,0.0000f,0.0000f,0.0000f,-1.0000f,-0.9202f,1.5625f,0.0000f,1.7321f,-0.5313f,-0.5625f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.0000f,1.7321f,0.5312f,-1.1191f,0.0000f,1.0000f,-0.9202f,0.3750f,-1.0000f,-0.0000f,-0.0000f,1.0000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.0000f,1.7321f,-0.5313f,-0.5816f,0.0000f,-1.0000f,-0.9202f,1.5625f,-1.0000f,-0.0000f,0.0000f,1.0000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-1.0000f,-0.0000f,-0.0000f,1.0000f,-0.0000f,1.0000f,-0.9202f,0.3750f,0.0000f,-1.7321f,-0.5312f,2.1191f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-1.0000f,-0.0000f,0.0000f,1.0000f,0.0000f,-1.0000f,-0.9202f,1.5625f,0.0000f,-1.7321f,0.5313f,1.5816f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.7071f,-5.3033f,-0.0000f,5.1250f,0.0000f,0.0000f,-1.2500f,1.1250f,0.7071f,5.3033f,0.0000f,-4.8125f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.0000f,-7.9375f,-0.0000f,7.9375f,0.0000f,0.0000f,-1.2500f,1.1250f,1.0000f,0.0000f,0.0000f,0.0000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.7071f,-1.2247f,-0.3757f,2.0026f,0.0000f,1.0000f,-0.9202f,0.3826f,0.7071f,-1.2247f,-0.3757f,1.2848f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.7071f,-1.2247f,0.3757f,1.6225f,0.0000f,-1.0000f,-0.9202f,1.5701f,0.7071f,-1.2247f,0.3757f,0.9047f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.7071f,-5.5243f,-0.0000f,6.0625f,0.0000f,0.0000f,-1.2500f,1.1326f,0.7071f,-5.5243f,-0.0000f,5.3125f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.0000f,-1.7321f,-0.5312f,2.1035f,0.0000f,1.0000f,-0.9202f,0.3750f,1.0000f,-0.0000f,-0.0000f,-0.0000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.0000f,-1.7321f,0.5313f,1.5660f,0.0000f,-1.0000f,-0.9202f,1.5625f,1.0000f,0.0000f,-0.0000f,-0.0000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.7071f,1.2247f,0.3757f,-0.2848f,-0.0000f,1.0000f,-0.9202f,0.3826f,-0.7071f,-1.2247f,-0.3757f,2.0026f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.7071f,1.2247f,-0.3757f,0.0953f,0.0000f,-1.0000f,-0.9202f,1.5701f,-0.7071f,-1.2247f,0.3757f,1.6225f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.7071f,1.2247f,0.3757f,-0.9919f,-0.0000f,1.0000f,-0.9202f,0.3826f,-0.7071f,1.2247f,0.3757f,-0.3096f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.7071f,1.2247f,-0.3757f,-0.6118f,0.0000f,-1.0000f,-0.9202f,1.5701f,-0.7071f,1.2247f,-0.3757f,0.0705f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.7071f,-1.2247f,-0.3757f,1.3096f,-0.0000f,1.0000f,-0.9202f,0.3826f,0.7071f,1.2247f,0.3757f,-0.9919f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.7071f,-1.2247f,0.3757f,0.9295f,0.0000f,-1.0000f,-0.9202f,1.5701f,0.7071f,1.2247f,-0.3757f,-0.6118f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[1.0000f,0.0000f,0.0000f,0.0000f,0.0000f,0.0000f,-1.2500f,1.1250f,0.0000f,7.9375f,0.0000f,-6.9375f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[1.4375f,0.0000f,0.0000f,-0.2500f,0.0000f,1.0000f,0.0000f,0.0000f,0.0000f,0.0000f,1.0000f,0.0000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:spruce_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[1.4375f,0.0000f,0.0000f,-0.2500f,0.0000f,1.0000f,0.0000f,-0.8125f,0.0000f,0.0000f,1.0000f,0.0000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.1875f,-0.8660f,0.0000f,0.8750f,0.3248f,0.5000f,0.0000f,0.3125f,0.0000f,0.0000f,0.7500f,0.1250f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.1875f,0.8660f,-0.0000f,0.1250f,0.3248f,0.5000f,0.0000f,0.3125f,0.0000f,-0.0000f,-0.7500f,0.8750f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.0000f,0.0000f,0.7500f,0.1250f,0.3248f,0.5000f,-0.0000f,0.3125f,-0.1875f,0.8660f,-0.0000f,0.1250f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.0000f,-0.0000f,-0.7500f,0.8750f,0.3248f,0.5000f,-0.0000f,0.3125f,0.1875f,-0.8660f,0.0000f,0.8750f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.1326f,-0.6124f,0.5303f,0.5325f,0.3248f,0.5000f,0.0000f,0.3125f,-0.1326f,0.6124f,0.5303f,-0.0303f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.1326f,0.6124f,-0.5303f,0.5325f,0.3248f,0.5000f,0.0000f,0.3125f,0.1326f,-0.6124f,-0.5303f,1.0303f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.1326f,0.6124f,0.5303f,0.0021f,0.3248f,0.5000f,-0.0000f,0.3125f,-0.1326f,0.6124f,-0.5303f,0.5000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.1326f,-0.6124f,-0.5303f,1.0628f,0.3248f,0.5000f,-0.0000f,0.3125f,0.1326f,-0.6124f,0.5303f,0.5000f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.1875f,-0.8660f,0.0000f,1.0625f,0.3248f,-0.5000f,0.0000f,0.3750f,0.0000f,0.0000f,0.7500f,0.1250f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.1875f,0.8660f,0.0000f,-0.0625f,0.3248f,-0.5000f,-0.0000f,0.3750f,0.0000f,0.0000f,-0.7500f,0.8750f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.0000f,0.0000f,-0.7500f,0.8750f,0.3248f,-0.5000f,0.0000f,0.3750f,-0.1875f,-0.8660f,-0.0000f,1.0625f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.0000f,-0.0000f,0.7500f,0.1250f,0.3248f,-0.5000f,0.0000f,0.3750f,0.1875f,0.8660f,0.0000f,-0.0625f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.1326f,-0.6124f,0.5303f,0.6651f,0.3248f,-0.5000f,0.0000f,0.3750f,0.1326f,0.6124f,0.5303f,-0.1629f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.1326f,0.6124f,-0.5303f,0.3999f,0.3248f,-0.5000f,-0.0000f,0.3750f,-0.1326f,-0.6124f,-0.5303f,1.1629f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[-0.1326f,-0.6124f,-0.5303f,1.1954f,0.3248f,-0.5000f,0.0000f,0.3750f,-0.1326f,-0.6124f,0.5303f,0.6326f,0.0000f,0.0000f,0.0000f,1.0000f]},{id:"minecraft:block_display",block_state:{Name:"minecraft:polished_blackstone_button",Properties:{face:"ceiling",facing:"east",powered:"false"}},transformation:[0.1326f,0.6124f,0.5303f,-0.1304f,0.3248f,-0.5000f,0.0000f,0.3750f,0.1326f,0.6124f,-0.5303f,0.3674f,0.0000f,0.0000f,0.0000f,1.0000f]}]}
#Enable/disable the glow of display entities
glowing: false
#Glow color of display entities in ARGB format (https://www.tydac.ch/color/)
glow-color-override: 16439142
#Center material that will be filled depending on where the block is installed. By def BARRIER
central-material: BARRIER
#Number of sides of the block. Can be set in the range from 1 to 360. By def 4
sides-count: 4
#Sounds of this block (list of sound-types can be found at https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html). Volume and pitch are set to 1 by default
sound:
#Break sound
break:
#Sound type. By def ITEM_LODESTONE_COMPASS_LOCK
sound-type: BLOCK_WOOD_BREAK
volume: 2.5
pitch: 0.6
#Place sound
place:
#Sound type. By def BLOCK_LODESTONE_PLACE
sound-type: BLOCK_BARREL_OPEN
volume: 1.7
pitch: 3
#Item of this block. Only material is a required field
item:
#Item material
material: BARREL
#Item name. By def the block name is selected
name: "&6Realistic barrel"
#Item enchantments, created as <enchantment name>: <level>.
enchantments:
LURE: 1
#item-flags of the item.
item-flags:
- HIDE_ENCHANTS
#Item lore
lore:
- "&9Barrel with a secret"
#Interaction Entity of a given block. The field may be missing, then all parameters are given by default
interaction:
#Interaction Entity height. By def 1.001
height: 1.1
#Interaction Entity width. By def 1.001
width: 1.001
#The command or commands that are called when the player interacts (right-clicks) with the Interaction Entity of this block. By def absent
command:
- /playsound minecraft:ambient.cave player %player_name%
#Command source (PLAYER who clicked on the interaction entity or CONSOLE). By def CONSOLE
command-source: PLAYER