Add Behavior Pack: Create feature / feature rule commands#335
Merged
Conversation
Co-authored-by: DaanV2 <2393905+DaanV2@users.noreply.github.com> Agent-Logs-Url: https://github.com/Blockception/minecraft-bedrock-language-server/sessions/52c528f6-00a2-4c8a-99b2-9fc3cb75fb43
Copilot
AI
changed the title
[WIP] Add command for creating features and feature rules
Add Behavior Pack: Create feature / feature rule commands
Mar 24, 2026
DaanV2
approved these changes
Mar 24, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users had no way to scaffold feature and feature rule files from the command palette — they had to create them manually.
Changes
ide/shared/src/constants.ts— AddedCommands.Create.Behaviorpack.Feature(bc-create-behavior-feature) andFeature_Rule(bc-create-behavior-feature_rule) constants.ide/base/server/src/lsp/templates/definitions/behavior-pack.ts— Added template bodies:feature:minecraft:single_block_featureskeleton (format1.16.0)feature_rule:minecraft:feature_rulesskeleton (format1.13.0) with biome filter, distribution, and aplaces_featureplaceholderide/base/server/src/lsp/commands/commands/templates.ts— Wired upTemplateItementries targetingfeatures/${{id.safe}}.feature.jsonandfeature_rules/${{id.safe}}.feature_rule.json.ide/base/client/src/commands/create-templates.ts— RegisteredcreateCommandWithIDhandlers with namespace-qualified ID validation.ide/vscode/package.json— Exposed both commands in the palette under theBlockceptioncategory withext:is_activeenablement.Example output
Running Behavior Pack: Create feature rule file and entering
example:my_ruleproduces:{ "format_version": "1.13.0", "minecraft:feature_rules": { "description": { "identifier": "example:my_rule", "places_feature": "namespace:feature_name" }, "conditions": { "placement_pass": "surface_pass", "minecraft:biome_filter": [{ "test": "has_biome_tag", "operator": "==", "value": "overworld" }] }, "distribution": { "iterations": 1, "x": { "extent": [0, 15] }, "y": { "extent": [0, 64] }, "z": { "extent": [0, 15] }, "scatter_chance": 100 } } }places_featureis intentionally left as a placeholder since it must reference a separately defined feature identifier.Original prompt
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.