#右键板条箱时提示
events.onPlayerInteractBlock(function(tishi as crafttweaker.event.PlayerInteractBlockEvent){
var block as IBlock = tishi.block;
var player as IPlayer = tishi.player;
for i in 0 to 5 {
if (!isNull(block) && block.definition.id == <variedcommodities:crate>.definition.makeStack(i)){
tishi.cancel();
tishi.player.sendStatusMessage(format.red("里面似乎装着什么,试试把他砸碎。"));}
}
});