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
static Random r = new Random(); | |
static List<Block> blocks = GameRegistry.findRegistry(Block.class).getValues().stream() | |
.collect(Collectors.toList()); | |
static int size = blocks.size(); | |
static boolean isValidBlock(Block block) { | |
Item item = block.asItem(); | |
ItemGroup group = item.getGroup(); | |
if (group != ItemGroup.BUILDING_BLOCKS) |
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
static Random r = new Random(); | |
static int size = Block.REGISTRY.getKeys().size(); | |
static boolean isValidBlock(Block block) { | |
if (block.getCreativeTab() != CreativeTabs.BUILDING_BLOCKS) | |
return false; | |
if (block == Blocks.WATER) | |
return false; | |
if (block == Blocks.WATERLILY) | |
return false; |
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
{ | |
"id": "jei", | |
"title": "Just Enough Items", | |
"author": "mezz", | |
"description": "JEI is an item and recipe viewing mod for Minecraft, built from the ground up for stability and performance.", | |
"type": "Mod", | |
"version": "1.14.4-6.0.0.27", | |
"urls": ["https://media.forgecdn.net/files/2847/274/jei-1.14.4-6.0.0.27.jar"], | |
"updateUrl": "https://gist.githubusercontent.com/ci010/0883bda60bc6b46bb123989229fbf05b/raw/824576bea5872adf2e7fa9551bb4ebdd9b195879/jei.pl.json" | |
} |
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
name: getSurroundingRange | |
description: Create a new snippet from a blank template. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: "Excel.run(async (context) => {\r\n let range = context.workbook.getSelectedRange();\r\n console.log(\"HELLO\");\r\n let surrounding = range.getSurroundingRegion();\r\n surrounding.load(\"address\");\r\n console.log(\"LOAD ADDR\");\r\n\r\n await context.sync();\r\n console.log(\"SYNCED\");\r\n console.log(surrounding.address);\r\n console.log(\"ADDR PRINT\");\r\n});\r\n" | |
language: typescript | |
template: | |
content: '' | |
language: html |
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
name: Blank snippet | |
description: Create a new snippet from a blank template. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
function grab() { | |
Excel.run(async (context) => { | |
let r = context.workbook.worksheets.getActiveWorksheet().getRange("A1:D8"); | |
r.conditionalFormats.load('items') |
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
name: BugBash | |
description: Adjust a chart title's format. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
function getDir() { | |
const dir = $("#direction").val(); | |
switch (dir) { | |
case "up": |
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
name: BugBash | |
description: Adjust a chart title's format. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
function getDir() { | |
const dir = $("#direction").val(); | |
switch (dir) { | |
case "up": |
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
name: Worksheet.TabId | |
description: Print Worksheet.TabId | |
host: EXCEL | |
api_set: {} | |
script: | |
content: > | |
$("#run").click(() => tryCatch(getActiveWorksheet)); | |
$("#run1").click(() => tryCatch(getInputWorksheet)); |
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
name: Worksheet.TabId | |
description: Print Worksheet.TabId | |
host: EXCEL | |
api_set: {} | |
script: | |
content: > | |
$("#run").click(() => tryCatch(getActiveWorksheet)); | |
$("#run1").click(() => tryCatch(getInputWorksheet)); |
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
name: CellEditMode | |
description: '' | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
console.log("Now, double click a cell to enter edit mode!"); |
OlderNewer