MCAxisAlignedBB
Link to mcaxisalignedbb
A MineCraft Axis Aligned Boundary Box object allows you change a Block's Boundary borders to a given cuboid shape.
导入相关包
Link to 导入相关包
It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.AxisAlignedBB;
Calling an MCAxisAlignedBB object
Link to calling-an-mcaxisalignedbb-object
You can get such an object using a Block's axisAlignedBB
Property.
Alternatively, you can use this package to create a new MCAxisAlignedBB object:
ZenScript CopyAxisAlignedBB.create(double minX, double minY, double minZ, double maxX, double maxY, double maxZ);
All parameters for this function are doubles between 0 and 1!
ZenProperties
Link to zenproperties
You can get and set each Property using getProperty()
or object.property
.
ZenProperty | 类型 |
---|---|
ZenProperty minX | 类型 double |
ZenProperty minY | 类型 double |
ZenProperty minZ | 类型 double |
ZenProperty maxX | 类型 double |
ZenProperty maxY | 类型 double |
ZenProperty maxZ | 类型 double |