Skip to content

Instantly share code, notes, and snippets.

@Levertion
Levertion / criteria.txt
Created September 29, 2018 12:28
Minecraft Objective Criteria as of 1.13.1
air
armor
deathCount
dummy
food
health
killedByTeam.<colors>
level
minecraft.broken:<items>
minecraft.crafted:<items>
@Levertion
Levertion / changes.md
Last active February 21, 2018 20:59
Preferable changes to exposed command data

Changes

  • resource_location: type of resource. Prevents having to hardcode based on path.
  • entity/bossbar parsers being stuffed under resource_location
  • execute run redirect - at the moment has to be done manually - Boo, hardcoding is bad.
  • minecraft:nbt is misnamed. It is really snbt
  • The current handling of choosing which entity to summon is anachronistic. The snbt should be following the name of the entity, not following the coordinates. Both block_state and item_stack (in give) have this, but not entities. Also, arguments after is no excuse - see /give count argument.
  • MrYurihi also suggested a different nbt type for each argument in data merge (which may or may not be needed)
@Levertion
Levertion / 1.13 Blocks
Last active December 24, 2017 19:37
All 1.13 blocks in a machine readable format. An explanation along of the format with a generator is found here: https://gist.github.com/Levertion/0a6c67cd949623d0a649ea8eb87a9b42
{
"minecraft:air":{},
"minecraft:barrier":{},
"minecraft:repeater":{
"states":{
"delay":[
"2",
"3",
"4",
"1"
@Levertion
Levertion / Refactor.ts
Created November 4, 2017 12:54
An attempted refactor of https://github.com/Levertion/vscode-mcfunction, until I realised it was going to end up being the exact same code
/* --------------------------------------------------------------------------------------------
* Licensed under the MIT License. See LICENSE and ThirdPartyNotices.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
'use strict';
import {
IPCMessageReader, IPCMessageWriter, createConnection, IConnection, InitializeResult,
TextDocuments, Diagnostic, TextDocument
} from 'vscode-languageserver';