W.I.P. New False floor, and assorted things
This commit is contained in:
parent
b54d26b751
commit
7ad0695a7d
11 changed files with 409 additions and 94 deletions
|
|
@ -153,6 +153,24 @@
|
|||
<None Include="assets\defensive\blocktypes\iron\brazier.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="assets\defensive\shapes\block\stone\brick_w_candle.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="assets\defensive\shapes\block\stone\climbing_slab.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="assets\defensive\blocktypes\stone\sconse_brick.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="assets\defensive\shapes\block\wood\false_floor.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="assets\defensive\blocktypes\wood\false_floor.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="assets\defensive\recipes\grid\false_floor.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
|
|
@ -63,6 +63,8 @@ namespace FirstMachineAge
|
|||
{
|
||||
CoreAPI.RegisterBlockClass("BoltableDoor", typeof(BoltableDoor));
|
||||
CoreAPI.RegisterBlockEntityClass(BoltableDoorEntityNameKey, typeof(BoltableDoorBlockEntity));
|
||||
|
||||
CoreAPI.RegisterBlockClass("CollapsingBlock", typeof(CollapsingBlock));
|
||||
}
|
||||
|
||||
private void RegisterBehaviorClasses( )
|
||||
|
|
|
|||
|
|
@ -158,6 +158,11 @@ namespace FirstMachineAge
|
|||
get { return this.Variant["state"] == "opened"; }//state: ["closed", "opened"]
|
||||
}
|
||||
|
||||
public override bool IsOpened()
|
||||
{
|
||||
return this.Variant["state"] == "opened"; //state: ["closed", "opened"]
|
||||
}
|
||||
|
||||
public override bool TryPlaceBlock(IWorldAccessor world, IPlayer byPlayer, ItemStack itemstack, BlockSelection blockSel, ref string failureCode)
|
||||
{
|
||||
BlockPos upperPos = blockSel.Position.AddCopy(0, 1, 0);
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
|||
using Vintagestory.API.Client;
|
||||
using Vintagestory.API.Common;
|
||||
using Vintagestory.API.Common.Entities;
|
||||
using Vintagestory.API.Config;
|
||||
using Vintagestory.API.MathTools;
|
||||
using Vintagestory.GameContent;
|
||||
|
||||
|
|
@ -24,7 +25,7 @@ namespace FirstMachineAge
|
|||
public TextureAtlasPosition this[string textureCode] {
|
||||
get
|
||||
{
|
||||
if (camoTextureSource == null ) camoTextureSource = ClientAPI.Tesselator.GetTexSource(this);
|
||||
if (camoTextureSource == null ) camoTextureSource = ClientAPI.Tesselator.GetTexSource(this);//How to PRESET??
|
||||
if (woodTextureSource == null) woodTextureSource = ClientAPI.Tesselator.GetTexSource(this);
|
||||
if (defaultTextureSource == null) defaultTextureSource = ClientAPI.Tesselator.GetTexSource(this);
|
||||
|
||||
|
|
@ -69,6 +70,8 @@ namespace FirstMachineAge
|
|||
}
|
||||
|
||||
|
||||
//TODO: Fall apart if player tries to 'Hoe' 'Dig' or mess with block in any way, or even place things on top of it...
|
||||
|
||||
public override void OnEntityInside(IWorldAccessor world, Entity entity, BlockPos pos)
|
||||
{
|
||||
//Get Ready to CRUMBLE!
|
||||
|
|
@ -82,12 +85,56 @@ namespace FirstMachineAge
|
|||
//Check 'Volumne' of Bounding box; large ones - cause collapse...
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Recipie: attributes: {camo: "{camo}" }
|
||||
As 'Item' -> Attribute
|
||||
public override bool DoPlaceBlock -> BlockEntity settings string material = byItemStack.Attributes.GetString("material");
|
||||
public override ItemStack OnPickBlock { stack.Attributes.SetString("camo", be.camo); }
|
||||
*/
|
||||
public override string GetPlacedBlockName(IWorldAccessor world, BlockPos pos)
|
||||
{
|
||||
if (this.AltCover == @"soil") {
|
||||
return Lang.Get(GlobalConstants.DefaultDomain + ":block-soil-verylow-none");
|
||||
}
|
||||
|
||||
if (!String.IsNullOrEmpty(this.Cover) && !String.IsNullOrEmpty(this.Material)) {
|
||||
return Lang.Get(GlobalConstants.DefaultDomain + $":block-{this.Cover}-{this.Material}" );
|
||||
}
|
||||
|
||||
return @"Error?";
|
||||
}
|
||||
|
||||
|
||||
private string Material
|
||||
{
|
||||
/*
|
||||
{ code: "cover", states: [ "sand","gravel" ] },
|
||||
{ code: "material", loadFromProperties: "block/rock", combine: "SelectiveMultiply", onVariant: "cover" },
|
||||
{ code: "alt_cover", states: [ "soil" ], combine: "Add" },
|
||||
*/
|
||||
get
|
||||
{
|
||||
return this.Variant[@"material"];
|
||||
}
|
||||
}
|
||||
|
||||
private string Cover {
|
||||
/*
|
||||
{ code: "cover", states: [ "sand","gravel" ] },
|
||||
{ code: "material", loadFromProperties: "block/rock", combine: "SelectiveMultiply", onVariant: "cover" },
|
||||
{ code: "alt_cover", states: [ "soil" ], combine: "Add" },
|
||||
*/
|
||||
get
|
||||
{
|
||||
return this.Variant[@"cover"];
|
||||
}
|
||||
}
|
||||
|
||||
private string AltCover {
|
||||
/*
|
||||
{ code: "cover", states: [ "sand","gravel" ] },
|
||||
{ code: "material", loadFromProperties: "block/rock", combine: "SelectiveMultiply", onVariant: "cover" },
|
||||
{ code: "alt_cover", states: [ "soil" ], combine: "Add" },
|
||||
*/
|
||||
get
|
||||
{
|
||||
return this.Variant[@"alt_cover"];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +1,53 @@
|
|||
|
||||
{
|
||||
code: "sconse_brick",
|
||||
shapebytype: {
|
||||
"*-north": { base: "block/stone/brick_w_candle", rotateY: 0 },
|
||||
"*-east": { base: "block/stone/brick_w_candle" , rotateY: 270 },
|
||||
"*-south": { base: "block/stone/brick_w_candle" , rotateY: 180 },
|
||||
"*-west": { base: "block/stone/brick_w_candle", rotateY: 90 },
|
||||
},
|
||||
variantgroups: [
|
||||
{ loadFromProperties: "block/rock" },
|
||||
{ code: "rot", states: ["north", "east", "south", "west"] }
|
||||
],
|
||||
textures: {
|
||||
"candle": { base: "game:block/candle"},
|
||||
"stonebrick1": { base: "game:block/stone/brick/{rock}1"},
|
||||
"stonebrick2": { base: "game:block/stone/brick/{rock}2"},
|
||||
"stonebrick3": { base: "game:block/stone/brick/{rock}3"}
|
||||
},
|
||||
blockmaterial: "Stone",
|
||||
sidesolidByType: {
|
||||
"*-north": { all: true, east: false, south: false, west: false },
|
||||
"*-east": { all: true, south: false, west: false, north: false },
|
||||
"*-south": { all: true, east: false, north: false, west: false },
|
||||
"*-west": { all: true, north: false, east: false, south: false },
|
||||
},
|
||||
sideopaqueByType: {
|
||||
"*-north": { all: true, south: false },
|
||||
"*-east": { all: true, west: false },
|
||||
"*-south": { all: true, north: false },
|
||||
"*-west": { all: true, east: false },
|
||||
},
|
||||
behaviors: [
|
||||
{name: "HorizontalOrientable", properties: { dropBlockFace: "north" }}
|
||||
],
|
||||
creativeinventory: { "general": ["sconse_brick-*"], "construction": ["sconse_brick-*"] },
|
||||
replaceable: 200,
|
||||
resistance: 4,
|
||||
rainPermeable: false,
|
||||
lightAbsorption: 99,
|
||||
lightHsv: [7, 7, 9],
|
||||
sounds: {
|
||||
"walk": "walk/stone",
|
||||
byTool: {
|
||||
"Pickaxe": { hit: "block/rock-hit-pickaxe", break: "block/rock-break-pickaxe" }
|
||||
}
|
||||
},
|
||||
heldTpIdleAnimation: "holdbothhandslarge", heldTpUseAnimation: "twohandplaceblock",
|
||||
tpHandTransform: {
|
||||
translation: { x: -1.2, y: -1.1, z: -0.8 },
|
||||
rotation: { x: -2, y: 25, z: -78 },
|
||||
scale: 0.37
|
||||
}
|
||||
}
|
||||
|
|
|
|||
55
Assorted/assets/defensive/blocktypes/wood/false_floor.json
Normal file
55
Assorted/assets/defensive/blocktypes/wood/false_floor.json
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
code: "false_floor",
|
||||
class: "CollapsingBlock",
|
||||
variantgroups: [
|
||||
{ code: "cover", states: [ "sand","gravel" ] },
|
||||
{ code: "material", combine: "SelectiveMultiply", onVariant: "cover", states: ["andesite", "chalk", "chert", "conglomerate", "limestone", "claystone", "granite", "sandstone", "shale", "basalt", "peridotite", "phyllite", "slate"] },
|
||||
{ code: "alt_cover", states: [ "soil" ], combine: "Add" },
|
||||
],
|
||||
creativeinventory: { "general": ["*"], "terrain": ["*"] },
|
||||
shape: { base: "block/wood/false_floor" },
|
||||
blockmaterialByType: {
|
||||
"*-soil": "Soil",
|
||||
"*-sand-*": "Sand",
|
||||
"*-gravel-*": "Gravel",
|
||||
},
|
||||
texturesByType: {
|
||||
"*-soil": {
|
||||
"wood": { base: "game:block/plant/bamboo/stem-brown" },
|
||||
"camo": { base: "game:block/soil/fertverylow" }
|
||||
},
|
||||
"*-sand-*": {
|
||||
"wood": { base: "game:block/plant/bamboo/stem-brown" },
|
||||
"camo": { base: "game:block/stone/sand/{material}" }
|
||||
},
|
||||
"*-gravel-*": {
|
||||
"wood": { base: "game:block/plant/bamboo/stem-brown" },
|
||||
"camo": { base: "game:block/stone/gravel/{material}" }
|
||||
},
|
||||
},
|
||||
attributes: {
|
||||
preventsDecay: true,
|
||||
allowUnstablePlacement: true
|
||||
},
|
||||
sidesolid: {
|
||||
all: false , top: true
|
||||
},
|
||||
sideopaque: {
|
||||
all: false , top: true
|
||||
},
|
||||
replaceable: 600,
|
||||
fertility: 1,
|
||||
resistance: 2.0,
|
||||
sounds: {
|
||||
place: "block/sand",
|
||||
break: "block/sand",
|
||||
hit: "block/sand",
|
||||
walk: "walk/sand"
|
||||
},
|
||||
heldTpIdleAnimation: "holdbothhandslarge", heldTpUseAnimation: "twohandplaceblock",
|
||||
tpHandTransform: {
|
||||
translation: { x: -1.2, y: -1.1, z: -0.8 },
|
||||
rotation: { x: -2, y: 25, z: -78 },
|
||||
scale: 0.37
|
||||
}
|
||||
}
|
||||
32
Assorted/assets/defensive/recipes/grid/false_floor.json
Normal file
32
Assorted/assets/defensive/recipes/grid/false_floor.json
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
[
|
||||
{
|
||||
ingredientPattern: "_S_ BBB",
|
||||
ingredients: {
|
||||
"S": { type: "block", code: "game:sand-*", quantity: 1, name: "sand", allowedVariants: ["andesite", "chalk", "chert", "conglomerate", "limestone", "claystone", "granite", "sandstone", "shale", "basalt", "peridotite", "phyllite", "slate"] },
|
||||
"B": { type: "item", code: "game:bamboostakes" },
|
||||
},
|
||||
width: 3,
|
||||
height: 2,
|
||||
output: { type: "block", code: "false_floor-sand-{sand}", quantity: 1 }
|
||||
},
|
||||
{
|
||||
ingredientPattern: "_G_ BBB",
|
||||
ingredients: {
|
||||
"G": { type: "block", code: "game:gravel-*", quantity: 1, name: "gravel", allowedVariants: ["andesite", "chalk", "chert", "conglomerate", "limestone", "claystone", "granite", "sandstone", "shale", "basalt", "peridotite", "phyllite", "slate"] },
|
||||
"B": { type: "item", code: "game:bamboostakes" },
|
||||
},
|
||||
width: 3,
|
||||
height: 2,
|
||||
output: { type: "block", code: "false_floor-gravel-{gravel}", quantity: 1 }
|
||||
},
|
||||
{
|
||||
ingredientPattern: "_D_ BBB",
|
||||
ingredients: {
|
||||
"D": { type: "block", code: "game:soil-low-*", quantity: 1 },
|
||||
"B": { type: "item", code: "game:bamboostakes" },
|
||||
},
|
||||
width: 3,
|
||||
height: 2,
|
||||
output: { type: "block", code: "false_floor-soil", quantity: 1 }
|
||||
}
|
||||
]
|
||||
|
|
@ -30,12 +30,12 @@
|
|||
{
|
||||
"name": "Face",
|
||||
"from": [ 0.0, 0.0, 10.0 ],
|
||||
"to": [ 12.0, 16.0, 11.0 ],
|
||||
"to": [ 12.0, 8.0, 11.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 12.0, 16.0 ], "enabled": false },
|
||||
"east": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 16.0 ], "enabled": false },
|
||||
"south": { "texture": "#stonebrick1", "uv": [ 3.5, 0.0, 15.5, 16.0 ], "autoUv": false, "snapUv": false },
|
||||
"west": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 16.0 ], "enabled": false },
|
||||
"north": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 8.0, 8.0 ], "enabled": false, "autoUv": false },
|
||||
"east": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 8.0 ], "enabled": false },
|
||||
"south": { "texture": "#stonebrick1", "uv": [ 1.5, 8.5, 13.5, 16.5 ], "autoUv": false, "snapUv": false },
|
||||
"west": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 8.0 ], "enabled": false },
|
||||
"up": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 12.0, 1.0 ], "enabled": false },
|
||||
"down": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 12.0, 1.0 ], "enabled": false }
|
||||
},
|
||||
|
|
@ -43,14 +43,15 @@
|
|||
{
|
||||
"name": "Curve1",
|
||||
"from": [ 0.0, 1.0, 5.0 ],
|
||||
"to": [ 7.0, 15.0, 6.0 ],
|
||||
"to": [ 7.0, 8.0, 6.0 ],
|
||||
"renderPass": 1,
|
||||
"rotationOrigin": [ 0.0, 0.0, 6.0 ],
|
||||
"rotationY": 45.0,
|
||||
"faces": {
|
||||
"north": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 7.0, 14.0 ], "enabled": false },
|
||||
"east": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 14.0 ], "enabled": false },
|
||||
"south": { "texture": "#stonebrick1", "uv": [ 0.5, 1.0, 7.5, 15.0 ] },
|
||||
"west": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 14.0 ], "enabled": false },
|
||||
"north": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 7.0, 7.0 ], "enabled": false },
|
||||
"east": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 7.0 ], "enabled": false },
|
||||
"south": { "texture": "#stonebrick1", "uv": [ 0.0, 8.0, 7.0, 15.0 ] },
|
||||
"west": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 7.0 ], "enabled": false },
|
||||
"up": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 7.0, 1.0 ], "enabled": false },
|
||||
"down": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 7.0, 1.0 ], "enabled": false }
|
||||
}
|
||||
|
|
@ -71,14 +72,15 @@
|
|||
{
|
||||
"name": "Curve2",
|
||||
"from": [ 9.0, 1.0, 5.0 ],
|
||||
"to": [ 16.0, 15.0, 6.0 ],
|
||||
"to": [ 16.0, 8.0, 6.0 ],
|
||||
"renderPass": 1,
|
||||
"rotationOrigin": [ 16.0, 0.0, 6.0 ],
|
||||
"rotationY": -45.0,
|
||||
"faces": {
|
||||
"north": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 7.0, 14.0 ], "enabled": false },
|
||||
"east": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 14.0 ], "enabled": false },
|
||||
"south": { "texture": "#stonebrick1", "uv": [ 8.0, 0.5, 15.0, 14.5 ], "rotation": 180 },
|
||||
"west": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 14.0 ], "enabled": false },
|
||||
"north": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 7.0, 7.0 ], "enabled": false, "autoUv": false },
|
||||
"east": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 7.0 ], "enabled": false },
|
||||
"south": { "texture": "#stonebrick1", "uv": [ 2.5, 8.5, 9.5, 15.5 ], "rotation": 180 },
|
||||
"west": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 1.0, 7.0 ], "enabled": false },
|
||||
"up": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 7.0, 1.0 ], "enabled": false },
|
||||
"down": { "texture": "#stonebrick2", "uv": [ 0.0, 0.0, 7.0, 1.0 ], "enabled": false }
|
||||
}
|
||||
|
|
@ -102,29 +104,29 @@
|
|||
{
|
||||
"name": "candle1",
|
||||
"from": [ 7.0, 1.0, 12.0 ],
|
||||
"to": [ 9.0, 5.0, 14.0 ],
|
||||
"to": [ 9.0, 5.5, 14.0 ],
|
||||
"rotationOrigin": [ 8.0, 1.0, 13.0 ],
|
||||
"rotationY": 45.0,
|
||||
"faces": {
|
||||
"north": { "texture": "#candle", "uv": [ 0.0, 12.0, 2.0, 16.0 ] },
|
||||
"east": { "texture": "#candle", "uv": [ 4.0, 12.0, 6.0, 16.0 ] },
|
||||
"south": { "texture": "#candle", "uv": [ 9.0, 12.0, 11.0, 16.0 ] },
|
||||
"west": { "texture": "#candle", "uv": [ 11.0, 12.0, 13.0, 16.0 ] },
|
||||
"north": { "texture": "#candle", "uv": [ 0.0, 11.5, 2.0, 16.0 ] },
|
||||
"east": { "texture": "#candle", "uv": [ 5.0, 11.5, 7.0, 16.0 ] },
|
||||
"south": { "texture": "#candle", "uv": [ 9.5, 11.5, 11.5, 16.0 ] },
|
||||
"west": { "texture": "#candle", "uv": [ 11.0, 11.5, 13.0, 16.0 ] },
|
||||
"up": { "texture": "#candle", "uv": [ 12.0, 2.0, 14.0, 4.0 ] },
|
||||
"down": { "texture": "#candle", "uv": [ 12.0, 14.0, 14.0, 16.0 ] }
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "top1",
|
||||
"from": [ 0.8, 4.0, 0.8 ],
|
||||
"to": [ 1.2, 4.5, 1.2 ],
|
||||
"from": [ 0.8, 4.5, 0.8 ],
|
||||
"to": [ 1.2, 5.0, 1.2 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.0, 0.5 ], "glow": 196 },
|
||||
"east": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.0, 0.5 ], "glow": 196 },
|
||||
"south": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.0, 0.5 ], "glow": 196 },
|
||||
"west": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.0, 0.5 ], "glow": 196 },
|
||||
"up": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.0, 0.0 ], "glow": 196 },
|
||||
"down": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.0, 0.0 ], "enabled": false }
|
||||
"north": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.5, 0.5 ], "glow": 196 },
|
||||
"east": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.5, 0.5 ], "glow": 196 },
|
||||
"south": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.5, 0.5 ], "glow": 196 },
|
||||
"west": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.5, 0.5 ], "glow": 196 },
|
||||
"up": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.5, 0.5 ], "glow": 196 },
|
||||
"down": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.5, 0.5 ], "enabled": false }
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -162,22 +164,22 @@
|
|||
{
|
||||
"name": "candle3",
|
||||
"from": [ 10.0, 1.0, 13.0 ],
|
||||
"to": [ 12.0, 5.0, 15.0 ],
|
||||
"to": [ 12.0, 4.5, 15.0 ],
|
||||
"rotationOrigin": [ 11.0, 1.0, 14.0 ],
|
||||
"rotationY": -45.0,
|
||||
"faces": {
|
||||
"north": { "texture": "#candle", "uv": [ 0.0, 12.0, 2.0, 16.0 ] },
|
||||
"east": { "texture": "#candle", "uv": [ 4.0, 12.0, 6.0, 16.0 ] },
|
||||
"south": { "texture": "#candle", "uv": [ 9.0, 12.0, 11.0, 16.0 ] },
|
||||
"west": { "texture": "#candle", "uv": [ 11.0, 12.0, 13.0, 16.0 ] },
|
||||
"north": { "texture": "#candle", "uv": [ 0.0, 12.0, 2.0, 15.5 ] },
|
||||
"east": { "texture": "#candle", "uv": [ 4.0, 12.0, 6.0, 15.5 ] },
|
||||
"south": { "texture": "#candle", "uv": [ 9.0, 12.0, 11.0, 15.5 ] },
|
||||
"west": { "texture": "#candle", "uv": [ 11.0, 12.0, 13.0, 15.5 ] },
|
||||
"up": { "texture": "#candle", "uv": [ 12.0, 2.0, 14.0, 4.0 ] },
|
||||
"down": { "texture": "#candle", "uv": [ 12.0, 14.0, 14.0, 16.0 ] }
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "top3",
|
||||
"from": [ 0.8, 4.0, 0.8 ],
|
||||
"to": [ 1.2, 4.5, 1.2 ],
|
||||
"from": [ 0.8, 3.5, 0.8 ],
|
||||
"to": [ 1.2, 4.0, 1.2 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.5, 0.5 ], "glow": 196 },
|
||||
"east": { "texture": "#candle", "uv": [ 0.0, 0.0, 0.5, 0.5 ], "glow": 196 },
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
"textureSizes": {
|
||||
},
|
||||
"textures": {
|
||||
"granite1": "block/stone/brick/granite1",
|
||||
"granite-inside": "block/stone/polishedrock/granite-inside"
|
||||
"smoothstone": "block/stone/polishedrock/granite",
|
||||
"brick": "block/stone/brick/granite1"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
|
|
@ -17,68 +17,54 @@
|
|||
"from": [ 0.0, 0.0, 0.0 ],
|
||||
"to": [ 16.0, 16.0, 8.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#granite1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
|
||||
"east": { "texture": "#granite1", "uv": [ 0.0, 0.0, 8.0, 16.0 ] },
|
||||
"south": { "texture": "#granite1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
|
||||
"west": { "texture": "#granite1", "uv": [ 0.0, 0.0, 8.0, 16.0 ] },
|
||||
"up": { "texture": "#granite1", "uv": [ 0.0, 0.0, 16.0, 8.0 ] },
|
||||
"down": { "texture": "#granite1", "uv": [ 0.0, 0.0, 16.0, 8.0 ] }
|
||||
"north": { "texture": "#brick", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
|
||||
"east": { "texture": "#brick", "uv": [ 0.0, 0.0, 8.0, 16.0 ] },
|
||||
"south": { "texture": "#brick", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
|
||||
"west": { "texture": "#brick", "uv": [ 0.0, 0.0, 8.0, 16.0 ] },
|
||||
"up": { "texture": "#brick", "uv": [ 0.0, 0.0, 16.0, 8.0 ] },
|
||||
"down": { "texture": "#brick", "uv": [ 0.0, 0.0, 16.0, 8.0 ] }
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "Foothold1",
|
||||
"from": [ 1.0, 1.0, 8.0 ],
|
||||
"to": [ 7.0, 3.0, 11.0 ],
|
||||
"rotationOrigin": [ 1.0, 1.0, 8.0 ],
|
||||
"from": [ 2.0, 1.0, 8.0 ],
|
||||
"to": [ 8.0, 3.0, 12.0 ],
|
||||
"rotationOrigin": [ 2.0, 1.0, 8.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#granite-inside", "uv": [ 4.5, 5.5, 10.5, 7.5 ] },
|
||||
"east": { "texture": "#granite-inside", "uv": [ 4.0, 7.0, 7.0, 9.0 ] },
|
||||
"south": { "texture": "#granite-inside", "uv": [ 5.0, 7.5, 11.0, 9.5 ] },
|
||||
"west": { "texture": "#granite-inside", "uv": [ 3.0, 4.0, 6.0, 6.0 ] },
|
||||
"up": { "texture": "#granite-inside", "uv": [ 1.5, 5.0, 7.5, 8.0 ] },
|
||||
"down": { "texture": "#granite-inside", "uv": [ 5.0, 6.5, 11.0, 9.5 ] }
|
||||
"north": { "texture": "#smoothstone", "uv": [ 5.0, 6.5, 7.0, 12.5 ], "rotation": 90 },
|
||||
"east": { "texture": "#smoothstone", "uv": [ 8.0, 7.5, 10.0, 11.5 ], "rotation": 90 },
|
||||
"south": { "texture": "#smoothstone", "uv": [ 12.5, 1.5, 14.5, 7.5 ], "rotation": 90 },
|
||||
"west": { "texture": "#smoothstone", "uv": [ 4.0, 7.5, 6.0, 11.5 ], "rotation": 90 },
|
||||
"up": { "texture": "#smoothstone", "uv": [ 5.5, 2.0, 9.5, 8.0 ], "rotation": 90 },
|
||||
"down": { "texture": "#smoothstone", "uv": [ 4.5, 6.5, 8.5, 12.5 ], "rotation": 90 }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Foothold2",
|
||||
"from": [ 9.0, 4.0, 8.0 ],
|
||||
"to": [ 15.0, 6.0, 11.0 ],
|
||||
"rotationOrigin": [ 9.0, 4.0, 8.0 ],
|
||||
"from": [ 7.0, 6.0, 8.0 ],
|
||||
"to": [ 13.0, 8.0, 12.0 ],
|
||||
"rotationOrigin": [ 7.0, 5.0, 8.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#granite-inside", "uv": [ 8.0, 8.0, 14.0, 10.0 ] },
|
||||
"east": { "texture": "#granite-inside", "uv": [ 4.0, 3.5, 7.0, 5.5 ] },
|
||||
"south": { "texture": "#granite-inside", "uv": [ 2.0, 5.5, 8.0, 7.5 ] },
|
||||
"west": { "texture": "#granite-inside", "uv": [ 5.0, 7.0, 8.0, 9.0 ] },
|
||||
"up": { "texture": "#granite-inside", "uv": [ 3.0, 0.5, 9.0, 3.5 ] },
|
||||
"down": { "texture": "#granite-inside", "uv": [ 7.0, 6.5, 13.0, 9.5 ] }
|
||||
"north": { "texture": "#smoothstone", "uv": [ 1.5, 7.5, 7.5, 9.5 ] },
|
||||
"east": { "texture": "#smoothstone", "uv": [ 10.5, 2.5, 14.5, 4.5 ] },
|
||||
"south": { "texture": "#smoothstone", "uv": [ 6.0, 3.0, 12.0, 5.0 ] },
|
||||
"west": { "texture": "#smoothstone", "uv": [ 7.5, 4.5, 11.5, 6.5 ] },
|
||||
"up": { "texture": "#smoothstone", "uv": [ 4.5, 8.5, 10.5, 12.5 ] },
|
||||
"down": { "texture": "#smoothstone", "uv": [ 3.5, 5.0, 9.5, 9.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Foothold3",
|
||||
"from": [ 1.0, 8.0, 8.0 ],
|
||||
"to": [ 7.0, 10.0, 11.0 ],
|
||||
"rotationOrigin": [ 1.0, 8.0, 8.0 ],
|
||||
"from": [ 2.0, 11.0, 8.0 ],
|
||||
"to": [ 8.0, 13.0, 12.0 ],
|
||||
"rotationOrigin": [ 2.0, 9.0, 8.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#granite-inside", "uv": [ 8.0, 8.0, 14.0, 10.0 ] },
|
||||
"east": { "texture": "#granite-inside", "uv": [ 4.0, 3.5, 7.0, 5.5 ] },
|
||||
"south": { "texture": "#granite-inside", "uv": [ 2.0, 5.5, 8.0, 7.5 ] },
|
||||
"west": { "texture": "#granite-inside", "uv": [ 5.0, 7.0, 8.0, 9.0 ] },
|
||||
"up": { "texture": "#granite-inside", "uv": [ 3.0, 0.5, 9.0, 3.5 ] },
|
||||
"down": { "texture": "#granite-inside", "uv": [ 7.0, 6.5, 13.0, 9.5 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Foothold4",
|
||||
"from": [ 9.0, 12.0, 8.0 ],
|
||||
"to": [ 15.0, 14.0, 11.0 ],
|
||||
"rotationOrigin": [ 9.0, 12.0, 8.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#granite-inside", "uv": [ 8.0, 8.0, 14.0, 10.0 ] },
|
||||
"east": { "texture": "#granite-inside", "uv": [ 4.0, 3.5, 7.0, 5.5 ] },
|
||||
"south": { "texture": "#granite-inside", "uv": [ 2.0, 5.5, 8.0, 7.5 ] },
|
||||
"west": { "texture": "#granite-inside", "uv": [ 5.0, 7.0, 8.0, 9.0 ] },
|
||||
"up": { "texture": "#granite-inside", "uv": [ 3.0, 0.5, 9.0, 3.5 ] },
|
||||
"down": { "texture": "#granite-inside", "uv": [ 7.0, 6.5, 13.0, 9.5 ] }
|
||||
"north": { "texture": "#smoothstone", "uv": [ 5.0, 10.5, 11.0, 12.5 ] },
|
||||
"east": { "texture": "#smoothstone", "uv": [ 5.5, 6.5, 9.5, 8.5 ] },
|
||||
"south": { "texture": "#smoothstone", "uv": [ 2.0, 9.5, 8.0, 11.5 ] },
|
||||
"west": { "texture": "#smoothstone", "uv": [ 5.0, 10.0, 9.0, 12.0 ] },
|
||||
"up": { "texture": "#smoothstone", "uv": [ 2.0, 3.0, 8.0, 7.0 ] },
|
||||
"down": { "texture": "#smoothstone", "uv": [ 5.0, 7.0, 11.0, 11.0 ] }
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
116
Assorted/assets/defensive/shapes/block/wood/false_floor.json
Normal file
116
Assorted/assets/defensive/shapes/block/wood/false_floor.json
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
"editor": {
|
||||
"allAngles": false,
|
||||
"entityTextureMode": false
|
||||
},
|
||||
"textureWidth": 16,
|
||||
"textureHeight": 16,
|
||||
"textureSizes": {
|
||||
},
|
||||
"textures": {
|
||||
"wood": "block/plant/bamboo/stem-brown",
|
||||
"camo": "block/soil/fertverylow"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "BaseStalk",
|
||||
"from": [ 8.0, 11.0, -1.0 ],
|
||||
"to": [ 24.0, 13.0, 1.0 ],
|
||||
"rotationOrigin": [ 8.0, 11.0, 0.0 ],
|
||||
"rotationY": -90.0,
|
||||
"faces": {
|
||||
"north": { "texture": "#wood", "uv": [ 1.0, 0.0, 3.0, 16.0 ], "rotation": 90 },
|
||||
"east": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ] },
|
||||
"south": { "texture": "#wood", "uv": [ 4.0, 0.0, 6.0, 16.0 ], "rotation": 90 },
|
||||
"west": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ] },
|
||||
"up": { "texture": "#wood", "uv": [ 3.5, 0.0, 5.5, 16.0 ], "rotation": 90 },
|
||||
"down": { "texture": "#wood", "uv": [ 2.0, 0.0, 4.0, 16.0 ], "rotation": 90 }
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "Stalk1",
|
||||
"from": [ 1.0, 2.0, -7.0 ],
|
||||
"to": [ 3.0, 4.0, 9.0 ],
|
||||
"rotationOrigin": [ 9.0, 0.0, 0.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ] },
|
||||
"east": { "texture": "#wood", "uv": [ 0.0, 0.0, 2.0, 16.0 ], "rotation": 90 },
|
||||
"south": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ], "rotation": 90 },
|
||||
"west": { "texture": "#wood", "uv": [ 5.5, 0.0, 7.5, 16.0 ], "rotation": 270 },
|
||||
"up": { "texture": "#wood", "uv": [ 3.5, 0.0, 5.5, 16.0 ] },
|
||||
"down": { "texture": "#wood", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Stalk2",
|
||||
"from": [ 4.0, 2.0, -7.0 ],
|
||||
"to": [ 6.0, 4.0, 9.0 ],
|
||||
"rotationOrigin": [ 8.0, 0.0, 0.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ] },
|
||||
"east": { "texture": "#wood", "uv": [ 0.0, 0.0, 2.0, 16.0 ], "rotation": 90 },
|
||||
"south": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ], "rotation": 90 },
|
||||
"west": { "texture": "#wood", "uv": [ 5.5, 0.0, 7.5, 16.0 ], "rotation": 270 },
|
||||
"up": { "texture": "#wood", "uv": [ 3.5, 0.0, 5.5, 16.0 ] },
|
||||
"down": { "texture": "#wood", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Stalk3",
|
||||
"from": [ 7.0, 2.0, -7.0 ],
|
||||
"to": [ 9.0, 4.0, 9.0 ],
|
||||
"rotationOrigin": [ 8.0, 0.0, 0.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ] },
|
||||
"east": { "texture": "#wood", "uv": [ 0.0, 0.0, 2.0, 16.0 ], "rotation": 90 },
|
||||
"south": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ], "rotation": 90 },
|
||||
"west": { "texture": "#wood", "uv": [ 5.5, 0.0, 7.5, 16.0 ], "rotation": 270 },
|
||||
"up": { "texture": "#wood", "uv": [ 3.5, 0.0, 5.5, 16.0 ] },
|
||||
"down": { "texture": "#wood", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Stalk4",
|
||||
"from": [ 10.0, 2.0, -7.0 ],
|
||||
"to": [ 12.0, 4.0, 9.0 ],
|
||||
"rotationOrigin": [ 8.0, 0.0, 0.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ] },
|
||||
"east": { "texture": "#wood", "uv": [ 0.0, 0.0, 2.0, 16.0 ], "rotation": 90 },
|
||||
"south": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ], "rotation": 90 },
|
||||
"west": { "texture": "#wood", "uv": [ 5.5, 0.0, 7.5, 16.0 ], "rotation": 270 },
|
||||
"up": { "texture": "#wood", "uv": [ 3.5, 0.0, 5.5, 16.0 ] },
|
||||
"down": { "texture": "#wood", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Stalk5",
|
||||
"from": [ 13.0, 2.0, -7.0 ],
|
||||
"to": [ 15.0, 4.0, 9.0 ],
|
||||
"rotationOrigin": [ 8.0, 0.0, 0.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ] },
|
||||
"east": { "texture": "#wood", "uv": [ 0.0, 0.0, 2.0, 16.0 ], "rotation": 90 },
|
||||
"south": { "texture": "#wood", "uv": [ 8.0, 14.0, 10.0, 16.0 ], "rotation": 90 },
|
||||
"west": { "texture": "#wood", "uv": [ 5.5, 0.0, 7.5, 16.0 ], "rotation": 270 },
|
||||
"up": { "texture": "#wood", "uv": [ 3.5, 0.0, 5.5, 16.0 ] },
|
||||
"down": { "texture": "#wood", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Psudeo_Layer",
|
||||
"from": [ 0.0, 4.0, -7.0 ],
|
||||
"to": [ 16.0, 5.0, 9.0 ],
|
||||
"rotationOrigin": [ 0.0, 4.0, 8.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#camo", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },
|
||||
"east": { "texture": "#camo", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },
|
||||
"south": { "texture": "#camo", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },
|
||||
"west": { "texture": "#camo", "uv": [ 0.0, 0.0, 16.0, 1.0 ] },
|
||||
"up": { "texture": "#camo", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
|
||||
"down": { "texture": "#camo", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue