Source | Flags |
---|---|
anvil |
|
cactus |
|
cramming |
bypasses_armor |
dragonBreath |
bypasses_armor |
drown |
bypasses_armor |
fall |
bypasses_armor |
fallingBlock |
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
ambient.cave | |
ambient.underwater.loop | |
ambient.underwater.loop.additions | |
ambient.underwater.loop.additions.rare | |
ambient.underwater.loop.additions.ultrarare | |
ambient.underwater.enter | |
ambient.underwater.exit | |
block.anvil.break | |
block.anvil.destroy | |
block.anvil.fall |
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
{ | |
"tag": "LootTableSeed", | |
"type": "long", | |
"optional": true, | |
"summary": "Seed to generate the loot table.", | |
"details": [ | |
"A set seed that can be used to produce consistent results from the given " | |
{ "text": "loot table", "reference": "Entity.LootTable" }, | |
", if any. The same seed will result in the same loot, every time." | |
], |
This is a proposition on using Python to dynamically generate commands, which is useful for things like function trees, repetitive code, and/or any large-scale projects.
Most of the code blocks presented are just snippets that don't do anything useful on their own. The idea is that the commented line is the command you'd expect to see by printing the object that follows.
Here's a classic example:
# say hi
commands.say(message='hi')
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
{ | |
HurtByTimestamp: 0, | |
Tame: 0b, | |
Attributes: [{ | |
Base: 17.0 d, | |
Name: "generic.maxHealth" | |
}, { | |
Base: 0.0 d, | |
Name: "generic.knockbackResistance" | |
}, { |
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
{ | |
Items: [{ | |
Slot: 0b, | |
id: "minecraft:gunpowder", | |
Count: 6 b | |
}, { | |
Slot: 4 b, | |
id: "minecraft:bucket", | |
Count: 1 b | |
}, { |
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
bundle exec bin/github-linguist language-mcfunction/ --breakdown | |
88.58% mcfunction | |
11.42% TypeScript | |
TypeScript: | |
build/build.ts | |
mcfunction: | |
tests/block_predicate.mcfunction | |
tests/coordinate.mcfunction |
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
{ | |
"achievement": { | |
"usage": "<give|take> <name|*> [player]" | |
}, | |
"advancement": { | |
"see": [ | |
"http://minecraft.gamepedia.com/Commands#advancement", | |
"http://minecraft.gamepedia.com/Advancements" | |
], | |
"usage": [ |