mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-25 22:46:26 +01:00
Logistical Mockups Part III
- Added the depot block
This commit is contained in:
parent
9af22b5578
commit
5b07073e00
13 changed files with 110 additions and 2 deletions
|
@ -58,6 +58,7 @@ f86eea3f7df0988fffbe90e29b74141a7203cd15 assets\create\blockstates\dark_scoria_c
|
||||||
f1020a33fcb1a362b6c55b5aa8ce093e47ebde09 assets\create\blockstates\dark_scoria_cobblestone_wall.json
|
f1020a33fcb1a362b6c55b5aa8ce093e47ebde09 assets\create\blockstates\dark_scoria_cobblestone_wall.json
|
||||||
902778a0f16b7ad009ee7b123bb583eaea32467a assets\create\blockstates\dark_scoria_pillar.json
|
902778a0f16b7ad009ee7b123bb583eaea32467a assets\create\blockstates\dark_scoria_pillar.json
|
||||||
ac85f55d82d96fc15750e6b954297cfd1e00d04d assets\create\blockstates\deployer.json
|
ac85f55d82d96fc15750e6b954297cfd1e00d04d assets\create\blockstates\deployer.json
|
||||||
|
3660f44309279a0347347f23ce7444c6ed98cafd assets\create\blockstates\depot.json
|
||||||
c890ec9b3778aebb16c6b2eb2ca79bfbe7bf7435 assets\create\blockstates\diorite_bricks.json
|
c890ec9b3778aebb16c6b2eb2ca79bfbe7bf7435 assets\create\blockstates\diorite_bricks.json
|
||||||
894d5ca00c3765553deaac44b83257983acf502d assets\create\blockstates\diorite_bricks_slab.json
|
894d5ca00c3765553deaac44b83257983acf502d assets\create\blockstates\diorite_bricks_slab.json
|
||||||
e42f2ebe5a2fdaeed62b9bc289252664a1e8705b assets\create\blockstates\diorite_bricks_stairs.json
|
e42f2ebe5a2fdaeed62b9bc289252664a1e8705b assets\create\blockstates\diorite_bricks_stairs.json
|
||||||
|
@ -334,8 +335,8 @@ c60c3115fd6eeaa3a696428a87a74d184ab7d62d assets\create\blockstates\weathered_lim
|
||||||
c77b46d8b459e5c7cc495393546f3fcca8a1fa1d assets\create\blockstates\weathered_limestone_pillar.json
|
c77b46d8b459e5c7cc495393546f3fcca8a1fa1d assets\create\blockstates\weathered_limestone_pillar.json
|
||||||
7f39521b211441f5c3e06d60c5978cebe16cacfb assets\create\blockstates\zinc_block.json
|
7f39521b211441f5c3e06d60c5978cebe16cacfb assets\create\blockstates\zinc_block.json
|
||||||
b7181bcd8182b2f17088e5aa881f374c9c65470c assets\create\blockstates\zinc_ore.json
|
b7181bcd8182b2f17088e5aa881f374c9c65470c assets\create\blockstates\zinc_ore.json
|
||||||
0ef66cfa2ad2656989bd228b5281dd81ae215f4e assets\create\lang\en_ud.json
|
5753bc985f4c202fe16387c32fb8ad80c631c933 assets\create\lang\en_ud.json
|
||||||
0a4d0882aa343ae0e943cf1bc542c2a96baedaa0 assets\create\lang\en_us.json
|
0640b1b64ac1a1e337178f932f22b0b2aea61d46 assets\create\lang\en_us.json
|
||||||
846200eb548d3bfa2e77b41039de159b4b6cfb45 assets\create\models\block\acacia_window.json
|
846200eb548d3bfa2e77b41039de159b4b6cfb45 assets\create\models\block\acacia_window.json
|
||||||
1930fa3a3c98d53dd19e4ee7f55bc27fd47aa281 assets\create\models\block\acacia_window_pane_noside.json
|
1930fa3a3c98d53dd19e4ee7f55bc27fd47aa281 assets\create\models\block\acacia_window_pane_noside.json
|
||||||
1763ea2c9b981d187f5031ba608f3d5d3be3986a assets\create\models\block\acacia_window_pane_noside_alt.json
|
1763ea2c9b981d187f5031ba608f3d5d3be3986a assets\create\models\block\acacia_window_pane_noside_alt.json
|
||||||
|
@ -998,6 +999,7 @@ e67fe11e9036c81f0f54d368b41a971822a84a32 assets\create\models\item\dark_scoria_c
|
||||||
f5b2995929ac9dca9857d4618660ffa7778d5618 assets\create\models\item\dark_scoria_pillar.json
|
f5b2995929ac9dca9857d4618660ffa7778d5618 assets\create\models\item\dark_scoria_pillar.json
|
||||||
f06f56ffb1cd7c9a2b81c65f7796726692e5cc59 assets\create\models\item\deforester.json
|
f06f56ffb1cd7c9a2b81c65f7796726692e5cc59 assets\create\models\item\deforester.json
|
||||||
2104c1276259ab67b94f3d4fe97e14b6bc6941ac assets\create\models\item\deployer.json
|
2104c1276259ab67b94f3d4fe97e14b6bc6941ac assets\create\models\item\deployer.json
|
||||||
|
84d87f715efab45dc7bcb2e3c0870ed56fa20ee9 assets\create\models\item\depot.json
|
||||||
a97ca9b6fc3e10a9c9409b27458a852222045e4e assets\create\models\item\diorite_bricks.json
|
a97ca9b6fc3e10a9c9409b27458a852222045e4e assets\create\models\item\diorite_bricks.json
|
||||||
7a28bb619d37a37ed82509d2ff395d76b4435961 assets\create\models\item\diorite_bricks_slab.json
|
7a28bb619d37a37ed82509d2ff395d76b4435961 assets\create\models\item\diorite_bricks_slab.json
|
||||||
920804b7380cca2c477d9f901e045597234246d7 assets\create\models\item\diorite_bricks_stairs.json
|
920804b7380cca2c477d9f901e045597234246d7 assets\create\models\item\diorite_bricks_stairs.json
|
||||||
|
@ -1772,6 +1774,7 @@ ef1beeb856cb30d381fd4f1cb4d2bf62fc444e52 data\create\loot_tables\blocks\dark_sco
|
||||||
76457f3ec7c2d3874866ce8eb894f7bd9cfd59ee data\create\loot_tables\blocks\dark_scoria_cobblestone_wall.json
|
76457f3ec7c2d3874866ce8eb894f7bd9cfd59ee data\create\loot_tables\blocks\dark_scoria_cobblestone_wall.json
|
||||||
be851f6643d151ed464e4164bc2b7ca145e5ff82 data\create\loot_tables\blocks\dark_scoria_pillar.json
|
be851f6643d151ed464e4164bc2b7ca145e5ff82 data\create\loot_tables\blocks\dark_scoria_pillar.json
|
||||||
cf9be747e10a98f3f3aabb95c9753f39d806f73b data\create\loot_tables\blocks\deployer.json
|
cf9be747e10a98f3f3aabb95c9753f39d806f73b data\create\loot_tables\blocks\deployer.json
|
||||||
|
5b46f6003bfe393b43ea0447fffcf7ae3bf969b1 data\create\loot_tables\blocks\depot.json
|
||||||
5c8ca846c3fb348fea628035e1670208e386516b data\create\loot_tables\blocks\diorite_bricks.json
|
5c8ca846c3fb348fea628035e1670208e386516b data\create\loot_tables\blocks\diorite_bricks.json
|
||||||
427fea1465652db87a2c192934511b972ecfcedf data\create\loot_tables\blocks\diorite_bricks_slab.json
|
427fea1465652db87a2c192934511b972ecfcedf data\create\loot_tables\blocks\diorite_bricks_slab.json
|
||||||
bdaba62199f7a65e1149b742aaaf0c23a1e149b0 data\create\loot_tables\blocks\diorite_bricks_stairs.json
|
bdaba62199f7a65e1149b742aaaf0c23a1e149b0 data\create\loot_tables\blocks\diorite_bricks_stairs.json
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "create:block/depot/block"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -59,6 +59,7 @@
|
||||||
"block.create.dark_scoria_cobblestone_wall": "\u05DF\u05DF\u0250M \u01DDuo\u0287s\u01DD\u05DFqqo\u0186 \u0250\u0131\u0279o\u0254S \u029E\u0279\u0250\u15E1",
|
"block.create.dark_scoria_cobblestone_wall": "\u05DF\u05DF\u0250M \u01DDuo\u0287s\u01DD\u05DFqqo\u0186 \u0250\u0131\u0279o\u0254S \u029E\u0279\u0250\u15E1",
|
||||||
"block.create.dark_scoria_pillar": "\u0279\u0250\u05DF\u05DF\u0131\u0500 \u0250\u0131\u0279o\u0254S \u029E\u0279\u0250\u15E1",
|
"block.create.dark_scoria_pillar": "\u0279\u0250\u05DF\u05DF\u0131\u0500 \u0250\u0131\u0279o\u0254S \u029E\u0279\u0250\u15E1",
|
||||||
"block.create.deployer": "\u0279\u01DD\u028Eo\u05DFd\u01DD\u15E1",
|
"block.create.deployer": "\u0279\u01DD\u028Eo\u05DFd\u01DD\u15E1",
|
||||||
|
"block.create.depot": "\u0287od\u01DD\u15E1",
|
||||||
"block.create.diorite_bricks": "s\u029E\u0254\u0131\u0279\u15FA \u01DD\u0287\u0131\u0279o\u0131\u15E1",
|
"block.create.diorite_bricks": "s\u029E\u0254\u0131\u0279\u15FA \u01DD\u0287\u0131\u0279o\u0131\u15E1",
|
||||||
"block.create.diorite_bricks_slab": "q\u0250\u05DFS s\u029E\u0254\u0131\u0279\u15FA \u01DD\u0287\u0131\u0279o\u0131\u15E1",
|
"block.create.diorite_bricks_slab": "q\u0250\u05DFS s\u029E\u0254\u0131\u0279\u15FA \u01DD\u0287\u0131\u0279o\u0131\u15E1",
|
||||||
"block.create.diorite_bricks_stairs": "s\u0279\u0131\u0250\u0287S s\u029E\u0254\u0131\u0279\u15FA \u01DD\u0287\u0131\u0279o\u0131\u15E1",
|
"block.create.diorite_bricks_stairs": "s\u0279\u0131\u0250\u0287S s\u029E\u0254\u0131\u0279\u15FA \u01DD\u0287\u0131\u0279o\u0131\u15E1",
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"block.create.dark_scoria_cobblestone_wall": "Dark Scoria Cobblestone Wall",
|
"block.create.dark_scoria_cobblestone_wall": "Dark Scoria Cobblestone Wall",
|
||||||
"block.create.dark_scoria_pillar": "Dark Scoria Pillar",
|
"block.create.dark_scoria_pillar": "Dark Scoria Pillar",
|
||||||
"block.create.deployer": "Deployer",
|
"block.create.deployer": "Deployer",
|
||||||
|
"block.create.depot": "Depot",
|
||||||
"block.create.diorite_bricks": "Diorite Bricks",
|
"block.create.diorite_bricks": "Diorite Bricks",
|
||||||
"block.create.diorite_bricks_slab": "Diorite Bricks Slab",
|
"block.create.diorite_bricks_slab": "Diorite Bricks Slab",
|
||||||
"block.create.diorite_bricks_stairs": "Diorite Bricks Stairs",
|
"block.create.diorite_bricks_stairs": "Diorite Bricks Stairs",
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"parent": "create:block/depot/block"
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "create:depot"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"condition": "minecraft:survives_explosion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -77,6 +77,7 @@ import com.simibubi.create.content.logistics.block.belts.observer.BeltObserverBl
|
||||||
import com.simibubi.create.content.logistics.block.belts.tunnel.BeltTunnelBlock;
|
import com.simibubi.create.content.logistics.block.belts.tunnel.BeltTunnelBlock;
|
||||||
import com.simibubi.create.content.logistics.block.chute.ChuteBlock;
|
import com.simibubi.create.content.logistics.block.chute.ChuteBlock;
|
||||||
import com.simibubi.create.content.logistics.block.chute.ChutePortBlock;
|
import com.simibubi.create.content.logistics.block.chute.ChutePortBlock;
|
||||||
|
import com.simibubi.create.content.logistics.block.depot.DepotBlock;
|
||||||
import com.simibubi.create.content.logistics.block.diodes.AbstractDiodeGenerator;
|
import com.simibubi.create.content.logistics.block.diodes.AbstractDiodeGenerator;
|
||||||
import com.simibubi.create.content.logistics.block.diodes.AdjustableRepeaterBlock;
|
import com.simibubi.create.content.logistics.block.diodes.AdjustableRepeaterBlock;
|
||||||
import com.simibubi.create.content.logistics.block.diodes.AdjustableRepeaterGenerator;
|
import com.simibubi.create.content.logistics.block.diodes.AdjustableRepeaterGenerator;
|
||||||
|
@ -786,6 +787,13 @@ public class AllBlocks {
|
||||||
.transform(customItemModel())
|
.transform(customItemModel())
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
|
public static final BlockEntry<DepotBlock> DEPOT = REGISTRATE.block("depot", DepotBlock::new)
|
||||||
|
.initialProperties(SharedProperties::stone)
|
||||||
|
.blockstate((c, p) -> p.simpleBlock(c.getEntry(), AssetLookup.partialBaseModel(c, p)))
|
||||||
|
.item()
|
||||||
|
.transform(customItemModel("_", "block"))
|
||||||
|
.register();
|
||||||
|
|
||||||
public static final BlockEntry<ExtractorBlock> EXTRACTOR = REGISTRATE.block("extractor", ExtractorBlock::new)
|
public static final BlockEntry<ExtractorBlock> EXTRACTOR = REGISTRATE.block("extractor", ExtractorBlock::new)
|
||||||
.initialProperties(SharedProperties::softMetal)
|
.initialProperties(SharedProperties::softMetal)
|
||||||
.blockstate((c, p) -> p.horizontalBlock(c.get(), AssetLookup.forPowered(c, p, c.getName() + "/horizontal")))
|
.blockstate((c, p) -> p.horizontalBlock(c.get(), AssetLookup.forPowered(c, p, c.getName() + "/horizontal")))
|
||||||
|
|
|
@ -134,6 +134,8 @@ public class AllShapes {
|
||||||
.build(),
|
.build(),
|
||||||
TANK_TOP_BOTTOM = shape(TANK_BOTTOM_LID).add(TANK_TOP_LID)
|
TANK_TOP_BOTTOM = shape(TANK_BOTTOM_LID).add(TANK_TOP_LID)
|
||||||
.add(TANK)
|
.add(TANK)
|
||||||
|
.build(),
|
||||||
|
DEPOT = shape(CASING_11PX.get(Direction.UP)).add(1, 11, 1, 15, 13, 15)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
package com.simibubi.create.content.logistics.block.depot;
|
||||||
|
|
||||||
|
import com.simibubi.create.AllShapes;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.BlockState;
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.util.math.shapes.ISelectionContext;
|
||||||
|
import net.minecraft.util.math.shapes.VoxelShape;
|
||||||
|
import net.minecraft.world.IBlockReader;
|
||||||
|
|
||||||
|
public class DepotBlock extends Block {
|
||||||
|
|
||||||
|
public DepotBlock(Properties p_i48440_1_) {
|
||||||
|
super(p_i48440_1_);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_,
|
||||||
|
ISelectionContext p_220053_4_) {
|
||||||
|
return AllShapes.DEPOT;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -6,6 +6,7 @@ import com.simibubi.create.content.contraptions.relays.belt.BeltBlock;
|
||||||
import com.simibubi.create.content.contraptions.relays.belt.BeltBlock.Slope;
|
import com.simibubi.create.content.contraptions.relays.belt.BeltBlock.Slope;
|
||||||
import com.simibubi.create.content.contraptions.wrench.IWrenchable;
|
import com.simibubi.create.content.contraptions.wrench.IWrenchable;
|
||||||
import com.simibubi.create.content.logistics.block.belts.tunnel.BeltTunnelBlock;
|
import com.simibubi.create.content.logistics.block.belts.tunnel.BeltTunnelBlock;
|
||||||
|
import com.simibubi.create.content.logistics.block.depot.DepotBlock;
|
||||||
import com.simibubi.create.foundation.utility.Lang;
|
import com.simibubi.create.foundation.utility.Lang;
|
||||||
import com.simibubi.create.foundation.utility.VoxelShaper;
|
import com.simibubi.create.foundation.utility.VoxelShaper;
|
||||||
|
|
||||||
|
@ -101,6 +102,8 @@ public class BeltFunnelBlock extends HorizontalBlock implements IWrenchable {
|
||||||
|
|
||||||
public static boolean isOnValidBelt(BlockState state, IWorldReader world, BlockPos pos) {
|
public static boolean isOnValidBelt(BlockState state, IWorldReader world, BlockPos pos) {
|
||||||
BlockState stateBelow = world.getBlockState(pos.down());
|
BlockState stateBelow = world.getBlockState(pos.down());
|
||||||
|
if (stateBelow.getBlock() instanceof DepotBlock)
|
||||||
|
return true;
|
||||||
if (!(stateBelow.getBlock() instanceof BeltBlock))
|
if (!(stateBelow.getBlock() instanceof BeltBlock))
|
||||||
return false;
|
return false;
|
||||||
if (stateBelow.get(BeltBlock.SLOPE) == Slope.VERTICAL)
|
if (stateBelow.get(BeltBlock.SLOPE) == Slope.VERTICAL)
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
"credit": "Made with Blockbench",
|
||||||
|
"parent": "block/block",
|
||||||
|
"textures": {
|
||||||
|
"1": "create:block/depot_side",
|
||||||
|
"2": "create:block/depot_top",
|
||||||
|
"3": "create:block/andesite_casing",
|
||||||
|
"particle": "create:block/andesite_casing"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"from": [0, 0, 0],
|
||||||
|
"to": [16, 11, 16],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [0.5, 10.5, 0.5]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [0, 5, 16, 16], "texture": "#1"},
|
||||||
|
"east": {"uv": [0, 5, 16, 16], "texture": "#1"},
|
||||||
|
"south": {"uv": [0, 5, 16, 16], "texture": "#1"},
|
||||||
|
"west": {"uv": [0, 5, 16, 16], "texture": "#1"},
|
||||||
|
"up": {"uv": [0, 0, 16, 16], "texture": "#3"},
|
||||||
|
"down": {"uv": [0, 0, 16, 16], "texture": "#3"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": [1, 11, 1],
|
||||||
|
"to": [15, 13, 15],
|
||||||
|
"rotation": {"angle": 0, "axis": "y", "origin": [9, -2, 9]},
|
||||||
|
"faces": {
|
||||||
|
"north": {"uv": [1, 14, 15, 16], "texture": "#2"},
|
||||||
|
"east": {"uv": [1, 14, 15, 16], "texture": "#2"},
|
||||||
|
"south": {"uv": [1, 14, 15, 16], "texture": "#2"},
|
||||||
|
"west": {"uv": [1, 14, 15, 16], "texture": "#2"},
|
||||||
|
"up": {"uv": [1, 0, 15, 14], "texture": "#2"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
src/main/resources/assets/create/textures/block/depot_side.png
Normal file
BIN
src/main/resources/assets/create/textures/block/depot_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 588 B |
BIN
src/main/resources/assets/create/textures/block/depot_top.png
Normal file
BIN
src/main/resources/assets/create/textures/block/depot_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 587 B |
Loading…
Reference in a new issue