directionalblock.yml
Sample Directional Block: Here's an example of how you might define a directional block in a YAML file for CoreExtensions:
# directionalblock.yml
blocks:
otherblock:
name: "Test Directional Block" # Item name (not included in lang file)
namespace: "coreextensions" # Namespace
id: "direct_block" # Item ID (string type)
maxCount: 64 # Maximum stack size (integer, int type)
lightLevel: 0 # Light level (integer, int type)
sound: "wood" # Block Sound
hardness: 1.5 # Block hardness (double/float type)
resistance: 3.0 # Block resistance (double/float type)
useCutoutLayer: true # Whether it supports transparent rendering (boolean type)
direction: "north" # Initial direction (string type, e.g., "north", "south", "east", "west")
# Add more blocks...
In this example, the block named "otherblock" is defined with properties similar to the previous example, and an additional property "direction" is added to specify the initial direction of the block. The direction property is a string indicating the initial orientation of the block, such as "north", "south", "east", or "west".
This example demonstrates how to define and manage directional blocks within a CoreExtensions pack.
Last updated