Skip to content

Commit

Permalink
- Add redstone conductivity block component
Browse files Browse the repository at this point in the history
  • Loading branch information
Xterionix committed Sep 20, 2024
1 parent 8489942 commit c895998
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$id": "blockception.minecraft.behavior.blocks.minecraft.redstone_conductivity",
"title": "Redstone Conductivity",
"description": "The basic redstone properties of a block; if the component is not provided the default values are used. Requires the Upcoming Creator Features experiment.",
"type": "object",
"additionalProperties": false,
"required": [ ],
"properties": {
"allows_wire_to_step_down": {
"title": "Allows Wire To Step Down",
"description": "Specifies if redstone wire can stair-step downward on the block.",
"type": "boolean",
"default": true
},
"redstone_conductor": {
"title": "Redstone Conductor",
"description": "Specifies if the block can be powered by redstone.",
"type": "boolean",
"default": false
}
}
}
9 changes: 5 additions & 4 deletions source/behavior/blocks/format/minecraft.block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "A custom block definition.",
"type": "object",
"additionalProperties": false,
"required": ["description", "components"],
"required": [ "description", "components" ],
"definitions": {
"components_ref": {
"type": "object",
Expand All @@ -29,6 +29,7 @@
"minecraft:map_color": { "$ref": "./components/map_color.json" },
"minecraft:material_instances": { "$ref": "./components/material_instances.json" },
"minecraft:placement_filter": { "$ref": "./components/placement_filter.json" },
"minecraft:redstone_conductivity": { "$ref": "./components/redstone_conductivity.json" },
"minecraft:selection_box": { "$ref": "./components/selection_box.json" },
"minecraft:transformation": { "$ref": "./components/transformation.json" },
"minecraft:custom_components": { "$ref": "./components/custom_components.json" },
Expand Down Expand Up @@ -77,7 +78,7 @@
"description": "The description for this block.",
"type": "object",
"additionalProperties": false,
"required": ["identifier"],
"required": [ "identifier" ],
"properties": {
"identifier": {
"title": "Identifier",
Expand All @@ -89,9 +90,9 @@
"title": "Menu Category",
"description": "Specifies the menu category and group for the block, which determine where this block is placed in the inventory and crafting table container screens. If this field is omitted, the block will not appear in the inventory or crafting table container screens.",
"type": "object",
"examples": [{ "category": "construction" }],
"examples": [ { "category": "construction" } ],
"additionalProperties": false,
"required": ["category"],
"required": [ "category" ],
"properties": {
"category": {
"$ref": "../../../general/vanilla/creative_category.json"
Expand Down

0 comments on commit c895998

Please sign in to comment.