REQUIRES NBTAPI TO WORK
Made to be used with ExecutableBlocks, but it can be extrapoled.
/checkinformation {player} {world} {x} {y} {z}
/itemtodisplay {place/retrieve} {player} {slot} {X} {Y} {Z} [size]
#####
!! I don't recommend using this command, I would prefer you to display your items in normal blocks such as slabs, blocks, etc. !!
/visualchest {openchest/closechest} {world} {x} {y} {z}
!! I don't recommend using this command, I would prefer you to display your items in normal blocks such as slabs, blocks, etc. !!
#####
ExecutableBlocks block config template:
Code (YAML):
creationType
: BASIC_CREATION
name
: '&eItem display'
lore
:
[
]
material
: CHEST
dropType
: IN_THE_INVENTORY
usage
: -1
cancelGravity
: false
cancelLiquidDestroy
: false
onlyBreakableWithEI
:
[
]
dropBlockIfItIsBroken
: true
dropBlockWhenItExplodes
: true
dropBlockWhenItBurns
: true
resetInternalDatasWhenBroken
: false
canBeMoved
: true
config_3
: true
config_update
: true
hiders:
hideEnchantments
: false
hideUnbreakable
: false
hideAttributes
: false
hideUsage
: false
hideDestroys
: false
hidePlacedOn
: false
hideDye
: false
hideArmorTrim
: false
hideAdditionalTooltip
: false
hideToolTip
: false
titleOptions:
activeTitle
: false
title
:
[
]
titleAdjustement
: 0.5
activators:
activator1:
name
: '&eActivator'
option
: PLAYER_RIGHT_CLICK_ON
usageModification
: 0
cancelEvent
: true
silenceOutput
: false
requiredItems
:
{
}
requiredExecutableItems
:
{
}
requiredMagics
:
{
}
commands
:
[
]
blockConditions:
requiredItems
:
{
}
requiredExecutableItems
:
{
}
worldConditions
:
{
}
placeholdersConditions:
plchCdt0:
type
: PLAYER_STRING
comparator
: EQUALS
part1
: '
%var_owner%'
part2
: 'null'
cancelEventIfNotValid
: true
messageIfNotValid
: ''
messageIfNotValidForTarget
: ''
stopCheckingOtherConditionsIfNotValid
: true
plchCdt1:
type
: PLAYER_STRING
comparator
: EQUALS
part1
: '
%checkitem_inhand%'
part2
: '
yes'
cancelEventIfNotValid
: false
messageIfNotValid
: ''
messageIfNotValidForTarget
: '&cYou dont have anything on your hand'
stopCheckingOtherConditionsIfNotValid
: true
variablesModification:
varUpdt0:
variableName
: owner
type
: SET
modification
: '
%player%'
ownerCommands
:
[
]
ownerConditions
:
{
}
playerCommands
:
- SEND_MESSAGE &eItem placed on the chest
- itemtodisplay:itemtodisplay place
%player% -1 %block_x%+0.5 %block_y%+1.2
%block_z%+0.5 0.5
- EBCOOLDOWN
%player% itemPlace 5 true
- visualchest openchest
%block_world% %block_x_int% %block_y_int% %block_z_int%
playerConditions
:
{
}
playerCooldownOptions:
cooldown
: 0
isCooldownInTicks
: false
cooldownMsg
: '&cYou are in cooldown ! &7
(&e
%time_H%&6H &e%time_M%&6M &e%time_S%&6S&7)'
displayCooldownMessage
: false
cancelEventIfInCooldown
: true
pauseWhenOffline
: false
pausePlaceholdersConditions
:
{
}
enableVisualCooldown
: false
globalCooldownOptions:
cooldown
: 0
isCooldownInTicks
: false
cooldownMsg
: '&cYou are in cooldown ! &7
(&e
%time_H%&6H &e%time_M%&6M &e%time_S%&6S&7)'
displayCooldownMessage
: false
cancelEventIfInCooldown
: false
enableVisualCooldown
: false
customConditions:
ifNeedPlayerConfirmationCancel
: false
activator0:
name
: '&eActivator'
option
: PLAYER_RIGHT_CLICK_ON
usageModification
: 0
cancelEvent
: true
silenceOutput
: false
requiredItems
:
{
}
requiredExecutableItems
:
{
}
requiredMagics
:
{
}
commands
:
[
]
blockConditions:
requiredItems
:
{
}
requiredExecutableItems
:
{
}
worldConditions
:
{
}
placeholdersConditions:
plchCdt0:
type
: PLAYER_STRING
comparator
: DIFFERENT
part1
: '
%var_owner%'
part2
: 'null'
cancelEventIfNotValid
: true
messageIfNotValid
: ''
messageIfNotValidForTarget
: ''
stopCheckingOtherConditionsIfNotValid
: true
placeholderConditionCmds
:
- itemtodisplay:checkinformation
%player% %block_world% %block_x%+0.5
%block_y%+1.2 %block_z%+0.5
variablesModification:
varUpdt0:
variableName
: owner
type
: SET
modification
: 'null'
ownerCommands
:
[
]
ownerConditions
:
{
}
playerCommands
:
- SEND_MESSAGE &cItem removed from the chest
- itemtodisplay:itemtodisplay retrieve
%player% -1 %block_x%+0.5 %block_y%+1.2
%block_z%+0.5 0.5
- EBCOOLDOWN
%player% itemPlace 5 true
- visualchest closechest
%block_world% %block_x_int% %block_y_int% %block_z_int%
playerConditions:
ifSneaking
: true
ifSneakingMsg
: ''
ifSneakingCmds
:
- score run-player-command player:
%player% IF %var_owner%!=null itemtodisplay:checkinformation %player% %block_world% %block_x%+0.5
%block_y%+1.2 %block_z%+0.5
playerCooldownOptions:
cooldown
: 0
isCooldownInTicks
: false
cooldownMsg
: '&cYou are in cooldown ! &7
(&e
%time_H%&6H &e%time_M%&6M &e%time_S%&6S&7)'
displayCooldownMessage
: false
cancelEventIfInCooldown
: true
pauseWhenOffline
: false
pausePlaceholdersConditions
:
{
}
enableVisualCooldown
: false
globalCooldownOptions:
cooldown
: 0
isCooldownInTicks
: false
cooldownMsg
: '&cYou are in cooldown ! &7
(&e
%time_H%&6H &e%time_M%&6M &e%time_S%&6S&7)'
displayCooldownMessage
: false
cancelEventIfInCooldown
: false
enableVisualCooldown
: false
customConditions:
ifNeedPlayerConfirmationCancel
: false
activator2:
name
: '&eActivator'
option
: PLAYER_BREAK
usageModification
: 0
cancelEvent
: true
silenceOutput
: false
requiredItems
:
{
}
requiredExecutableItems
:
{
}
requiredMagics
:
{
}
commands
:
- SEND_MESSAGE &cYou can''t break this block.
blockConditions:
requiredItems
:
{
}
requiredExecutableItems
:
{
}
worldConditions
:
{
}
placeholdersConditions:
plchCdt0:
type
: PLAYER_STRING
comparator
: DIFFERENT
part1
: '
%var_owner%'
part2
: 'null'
cancelEventIfNotValid
: false
messageIfNotValid
: ''
messageIfNotValidForTarget
: ''
stopCheckingOtherConditionsIfNotValid
: true
variablesModification
:
{
}
ownerCommands
:
[
]
ownerConditions
:
{
}
playerCommands
:
[
]
playerConditions
:
{
}
playerCooldownOptions:
cooldown
: 0
isCooldownInTicks
: false
cooldownMsg
: '&cYou are in cooldown ! &7
(&e
%time_H%&6H &e%time_M%&6M &e%time_S%&6S&7)'
displayCooldownMessage
: false
cancelEventIfInCooldown
: false
pauseWhenOffline
: false
pausePlaceholdersConditions
:
{
}
enableVisualCooldown
: false
globalCooldownOptions:
cooldown
: 0
isCooldownInTicks
: false
cooldownMsg
: '&cYou are in cooldown ! &7
(&e
%time_H%&6H &e%time_M%&6M &e%time_S%&6S&7)'
displayCooldownMessage
: false
cancelEventIfInCooldown
: false
enableVisualCooldown
: false
customConditions:
ifNeedPlayerConfirmationCancel
: false
variables:
var1:
variableName
: owner
type
: STRING
default
: 'null'
isRefreshableClean
: true
refreshTagDoNotEdit
: §他§自§生§他§生§人§意§他§道
containerFeatures:
whitelistMaterials
:
[
]
blacklistMaterials
:
[
]
hopperFeatures
:
{
}
furnaceFeatures:
furnaceSpeed
: 1.0
infiniteFuel
: false
infiniteVisualLit
: false
fortuneChance
: 0.0
fortuneMultiplier
: 1.0
brewingStandFeatures:
brewingStandSpeed
: 1.0
directionalFeatures:
forceBlockFaceOnPlace
: false
chiseledBookshelfFeatures:
occupiedSlots
:
[
]