Adjustments for 1.8.
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"facing=north": { "model": "opencomputers:waypoint" },
|
||||||
|
"facing=south": { "model": "opencomputers:waypoint", "y": 180 },
|
||||||
|
"facing=west": { "model": "opencomputers:waypoint", "y": 270 },
|
||||||
|
"facing=east": { "model": "opencomputers:waypoint", "y": 90 }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"parent": "block/orientable",
|
||||||
|
"textures": {
|
||||||
|
"bottom": "opencomputers:blocks/generic_top",
|
||||||
|
"top": "opencomputers:blocks/waypoint_top",
|
||||||
|
"side": "opencomputers:blocks/waypoint_side",
|
||||||
|
"front": "opencomputers:blocks/waypoint_front"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "opencomputers:item/flat",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "opencomputers:items/hoverUpgrade1"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "opencomputers:item/flat",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "opencomputers:items/hoverUpgrade2"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"parent": "opencomputers:block/waypoint",
|
||||||
|
"display": {
|
||||||
|
"thirdperson": {
|
||||||
|
"rotation": [ 10, -45, 170 ],
|
||||||
|
"translation": [ 0, 1.5, -2.75 ],
|
||||||
|
"scale": [ 0.375, 0.375, 0.375 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -249,9 +249,9 @@ hoverUpgrade1 {
|
|||||||
[feather, "oc:materialCircuitBoardPrinted", feather]]
|
[feather, "oc:materialCircuitBoardPrinted", feather]]
|
||||||
}
|
}
|
||||||
hoverUpgrade2 {
|
hoverUpgrade2 {
|
||||||
input: [[end_stone, "oc:circuitChip2", end_stone]
|
input: [[{block="minecraft:end_stone"}, "oc:circuitChip2", {block="minecraft:end_stone"}]
|
||||||
[nuggetGold, ingotIron, nuggetGold]
|
[nuggetGold, ingotIron, nuggetGold]
|
||||||
[end_stone, "oc:materialCircuitBoardPrinted", end_stone]]
|
[{block="minecraft:end_stone"}, "oc:materialCircuitBoardPrinted", {block="minecraft:end_stone"}]]
|
||||||
}
|
}
|
||||||
inventoryUpgrade {
|
inventoryUpgrade {
|
||||||
input: [[plankWood, hopper, plankWood]
|
input: [[plankWood, hopper, plankWood]
|
||||||
|
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 662 B After Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 682 B |
@ -64,7 +64,7 @@ class UpgradeNavigation(val host: EnvironmentHost with Rotatable) extends prefab
|
|||||||
val waypoints = Waypoints.findWaypoints(position, range).
|
val waypoints = Waypoints.findWaypoints(position, range).
|
||||||
filter(waypoint => waypoint.getDistanceSq(positionVec.xCoord, positionVec.yCoord, positionVec.zCoord) <= rangeSq)
|
filter(waypoint => waypoint.getDistanceSq(positionVec.xCoord, positionVec.yCoord, positionVec.zCoord) <= rangeSq)
|
||||||
result(waypoints.map(waypoint => {
|
result(waypoints.map(waypoint => {
|
||||||
val delta = position.toVec3.subtract(waypoint.position.offset(waypoint.facing).toVec3)
|
val delta = waypoint.position.offset(waypoint.facing).toVec3.subtract(positionVec)
|
||||||
Map(
|
Map(
|
||||||
"position" -> Array(delta.xCoord, delta.yCoord, delta.zCoord),
|
"position" -> Array(delta.xCoord, delta.yCoord, delta.zCoord),
|
||||||
"redstone" -> waypoint.maxInput,
|
"redstone" -> waypoint.maxInput,
|
||||||
|