This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container.0=0, | |
container.1=1, | |
container.2=2, | |
container.3=3, | |
container.4=4, | |
container.5=5, | |
container.6=6, | |
container.7=7, | |
container.8=8, | |
container.9=9, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All events have same first three arguments: <1:source peripheral> <2:player name> <3:player uuid> | |
State events: | |
glasses_attach - player started wearing glasses | |
glasses_detach - player stopped wearing glasses | |
glasses_capture - player initiated capture mode (used keyboard) | |
glasses_release - player exited capture mode (exited gui screen) | |
Chat events: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parent": "item/handheld", | |
"textures": { | |
"layer0": "item/diamond_shovel" | |
}, | |
"overrides": [ | |
{ | |
"predicate": { | |
"custom_model_data": 1 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"condition": "minecraft:alternative", | |
"terms": [ | |
{ | |
"condition": "minecraft:match_tool", | |
"predicate": { | |
"item": "minecraft:shears" | |
} | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setblock ~2 ~ ~ minecraft:command_block{Command:"particle minecraft:ambient_entity_effect ~ ~1 ~"} | |
setblock ~2 ~ ~1 minecraft:stone_button[face=wall,facing=south] | |
setblock ~4 ~ ~ minecraft:command_block{Command:"particle minecraft:angry_villager ~ ~1 ~"} | |
setblock ~4 ~ ~1 minecraft:stone_button[face=wall,facing=south] | |
setblock ~6 ~ ~ minecraft:command_block{Command:"particle minecraft:barrier ~ ~1 ~"} | |
setblock ~6 ~ ~1 minecraft:stone_button[face=wall,facing=south] | |
setblock ~8 ~ ~ minecraft:command_block{Command:"particle minecraft:block grass ~ ~1 ~"} | |
setblock ~8 ~ ~1 minecraft:stone_button[face=wall,facing=south] | |
setblock ~10 ~ ~ minecraft:command_block{Command:"particle minecraft:bubble ~ ~1 ~"} | |
setblock ~10 ~ ~1 minecraft:stone_button[face=wall,facing=south] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
from PIL import Image, ImageMath | |
MC_CHARS = u"\u00c0\u00c1\u00c2\u00c8\u00ca\u00cb\u00cd\u00d3\u00d4\u00d5\u00da\u00df\u00e3\u00f5\u011f\u0130" + \ | |
u"\u0131\u0152\u0153\u015e\u015f\u0174\u0175\u017e\u0207\u0000\u0000\u0000\u0000\u0000\u0000\u0000" + \ | |
u"\u0020\u0021\"\u0023\u0024\u0025\u0026\u0027\u0028\u0029\u002a\u002b\u002c\u002d\u002e\u002f" + \ | |
u"\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u003a\u003b\u003c\u003d\u003e\u003f" + \ | |
u"\u0040\u0041\u0042\u0043\u0044\u0045\u0046\u0047\u0048\u0049\u004a\u004b\u004c\u004d\u004e\u004f" + \ | |
u"\u0050\u0051\u0052\u0053\u0054\u0055\u0056\u0057\u0058\u0059\u005a\u005b\\\u005d\u005e\u005f" + \ | |
u"\u0060\u0061\u0062\u0063\u0064\u0065\u0066\u0067\u0068\u0069\u006a\u006b\u006c\u006d\u006e\u006f" + \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop block ~ ~1 ~ insert container.0 replace kill @p | |
tellraw @p {"nbt":"Items[{Slot:0b}].tag.SkullOwner.Name","block":"~ ~1 ~","extra":[": ", {"nbt":"Items[{Slot:0b}].tag.SkullOwner.Id","block":"~ ~1 ~"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "minecraft:block", | |
"pools": [ | |
{ | |
"rolls": 1, | |
"entries": [ | |
{ | |
"type": "minecraft:alternatives", | |
"children": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- OpenPeripheral terminal glasses demo | |
-- by boq | |
local p = peripheral.wrap("back") | |
if p == nil then | |
print("Peripheral not found") | |
return | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Glyphs with blurry pixels in scale 1/100 | |
// hShift = -ix0 * scale; vShift = -iy0 * scale; | |
// 'blurred' value contains counts for pixels values other than 0 and 255. | |
[00A6]BROKEN BAR: x0=50 y0=-100 x1=150 y=1800 glyph=103 blurred={128=2} | |
[00C5]LATIN CAPITAL LETTER A WITH RING ABOVE: x0=50 y0=0 x1=550 y=1900 glyph=127 blurred={128=6} | |
[00C8]LATIN CAPITAL LETTER E WITH GRAVE: x0=50 y0=0 x1=550 y=1900 glyph=130 blurred={128=4} | |
[00EC]LATIN SMALL LETTER I WITH GRAVE: x0=0 y0=0 x1=200 y=1700 glyph=166 blurred={128=10} | |
[00ED]LATIN SMALL LETTER I WITH ACUTE: x0=0 y0=0 x1=200 y=1700 glyph=167 blurred={128=10} | |
[00F9]LATIN SMALL LETTER U WITH GRAVE: x0=50 y0=0 x1=550 y=1700 glyph=179 blurred={128=4} |
NewerOlder