This file contains hidden or 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
| interface RedstoneSignalParams { power: number, signal: number, onLoad: boolean } | |
| class TileEntityImplementation<T> implements TileEntity, TileEntity.TileEntityPrototype { | |
| public readonly useNetworkItemContainer = true; | |
| public readonly x: number; | |
| public readonly y: number; | |
| public readonly z: number; | |
| public readonly dimension: number; | |
| public readonly blockID: number; |
This file contains hidden or 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
| /// <reference path="core-engine.d.ts" /> | |
| type MinMax = { min: number, max: number } | |
| type FeatureTypes = "buriedtreasure" | "endcity" | "fortress" | "mansion" | "mineshaft" | "monument" | "pillageroutpost" | "ruins" | "shipwreck" | "stronghold" | "temple" | "village"; | |
| type EnchantTypes = Lowercase<keyof typeof EEnchantment>; | |
| declare namespace LootTableTypes { | |
| export type LootPoolEntryFunction = { | |
| function: "enchant_book_for_trading", | |
| base_cost: number, |
This file contains hidden or 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
| /// <reference path="core-engine.d.ts" /> | |
| type MinMax = { min: number, max: number } | |
| type FeatureTypes = "buriedtreasure" | "endcity" | "fortress" | "mansion" | "mineshaft" | "monument" | "pillageroutpost" | "ruins" | "shipwreck" | "stronghold" | "temple" | "village"; | |
| type EnchantTypes = Lowercase<keyof typeof EEnchantment>; | |
| declare namespace LootTableTypes { | |
| export type LootPoolEntryFunction = { | |
| function: "enchant_book_for_trading", | |
| base_cost: number, |
This file contains hidden or 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
| /// <reference path="core-engine.d.ts" /> | |
| type MinMax = { min: number, max: number } | |
| type FeatureTypes = "buriedtreasure" | "endcity" | "fortress" | "mansion" | "mineshaft" | "monument" | "pillageroutpost" | "ruins" | "shipwreck" | "stronghold" | "temple" | "village"; | |
| type EnchantTypes = Lowercase<keyof typeof EEnchantment>; | |
| declare namespace LootTableTypes { | |
| export type LootPoolEntryFunction = { | |
| function: "enchant_book_for_trading", | |
| base_cost: number, |
This file contains hidden or 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
| /// <reference path="core-engine.d.ts" /> | |
| type MinMax = { min: number, max: number } | |
| type FeatureTypes = "buriedtreasure" | "endcity" | "fortress" | "mansion" | "mineshaft" | "monument" | "pillageroutpost" | "ruins" | "shipwreck" | "stronghold" | "temple" | "village"; | |
| type EnchantTypes = Lowercase<keyof typeof EEnchantment>; | |
| declare namespace LootTableTypes { | |
| export type LootPoolEntryFunction = { | |
| function: "enchant_book_for_trading", | |
| base_cost: number, |
This file contains hidden or 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
| { | |
| "badlands_plateau": "mesa_plateau", | |
| "badlands": "mesa", | |
| "dark_forest_hills": "roofed_forest_mutated", | |
| "dark_forest": "roofed_forest", | |
| "desert_lakes": "desert_mutated", | |
| "eroded_badlands": "mesa_bryce", | |
| "giant_spruce_taiga_hills": "redwood_taiga_hills_mutated", | |
| "giant_spruce_taiga": "redwood_taiga_mutated", | |
| "giant_tree_taiga_hills": "mega_taiga_hills", |
This file contains hidden or 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
| const convertQuadsToTriangles = (objString: string) => { | |
| const lines = objString.split("\n"); | |
| const newLines = []; | |
| lines.forEach((line, i) => { | |
| if(line.startsWith("f ")) { | |
| const faceVertices = line.split(" ").slice(1); | |
| if(faceVertices.length === 3) newLines.push(line); | |
| else if(faceVertices.length === 4) { | |
| newLines.push( | |
| `f ${faceVertices[0]} ${faceVertices[1]} ${faceVertices[2]}`, |
This file contains hidden or 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
| # Fetches yunzhan365.com book contents and saves it to PDF. | |
| # Really slow but I just wanted to make this work in any way. | |
| # Third-party modules: requests, selenium, pillow | |
| # Usage: python yunzhan.py <needed yunzhan book url> | |
| from io import BytesIO | |
| from json import dumps, loads | |
| from math import floor | |
| import requests |