mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-30 17:06:56 +01:00
Shut up non_movable. Please.
This commit is contained in:
parent
a6f0816611
commit
c1d88bbad4
4 changed files with 8 additions and 14 deletions
|
@ -1654,7 +1654,7 @@ d080b1b25e5bc8baf5aee68691b08c7f12ece3b0 assets/create/models/item/windmill_bear
|
||||||
a80fb25a0b655e76be986b5b49fcb0f03461a1ab assets/create/models/item/zinc_nugget.json
|
a80fb25a0b655e76be986b5b49fcb0f03461a1ab assets/create/models/item/zinc_nugget.json
|
||||||
b1689617190c05ef34bd18456b0c7ae09bb3210f assets/create/models/item/zinc_ore.json
|
b1689617190c05ef34bd18456b0c7ae09bb3210f assets/create/models/item/zinc_ore.json
|
||||||
6490fa0587db770cf7c794b47f3bcd2b691f4226 assets/create/sounds.json
|
6490fa0587db770cf7c794b47f3bcd2b691f4226 assets/create/sounds.json
|
||||||
0f1b4b980afba9bf2caf583b88e261bba8b10313 data/create/advancements/aesthetics.json
|
5d0cc4c0255dc241e61c173b31ddca70c88d08e4 data/create/advancements/aesthetics.json
|
||||||
187921fa131b06721bfaf63f2623a28c141aae9a data/create/advancements/andesite_alloy.json
|
187921fa131b06721bfaf63f2623a28c141aae9a data/create/advancements/andesite_alloy.json
|
||||||
0ea2db7173b5be28b289ea7c9a6a0cf5805c60c7 data/create/advancements/andesite_casing.json
|
0ea2db7173b5be28b289ea7c9a6a0cf5805c60c7 data/create/advancements/andesite_casing.json
|
||||||
83c046bd200623933545c9e4326f782fb02c87fa data/create/advancements/arm_blaze_burner.json
|
83c046bd200623933545c9e4326f782fb02c87fa data/create/advancements/arm_blaze_burner.json
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
"trigger": "create:bracket_apply",
|
"trigger": "create:bracket_apply",
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"accepted_entries": [
|
"accepted_entries": [
|
||||||
"create:cogwheel",
|
"create:large_cogwheel",
|
||||||
"create:large_cogwheel"
|
"create:cogwheel"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -146,7 +146,6 @@ public class AllTags {
|
||||||
WINDMILL_SAILS,
|
WINDMILL_SAILS,
|
||||||
FAN_HEATERS,
|
FAN_HEATERS,
|
||||||
WINDOWABLE,
|
WINDOWABLE,
|
||||||
NON_MOVABLE(false),
|
|
||||||
BRITTLE,
|
BRITTLE,
|
||||||
SEATS,
|
SEATS,
|
||||||
SAILS,
|
SAILS,
|
||||||
|
@ -168,25 +167,17 @@ public class AllTags {
|
||||||
}
|
}
|
||||||
|
|
||||||
private AllBlockTags(NameSpace namespace, String path) {
|
private AllBlockTags(NameSpace namespace, String path) {
|
||||||
this(namespace, path, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private AllBlockTags(NameSpace namespace, String path, boolean generateData) {
|
|
||||||
ResourceLocation id =
|
ResourceLocation id =
|
||||||
new ResourceLocation(namespace.id, (path.isEmpty() ? "" : path + "/") + Lang.asId(name()));
|
new ResourceLocation(namespace.id, (path.isEmpty() ? "" : path + "/") + Lang.asId(name()));
|
||||||
if (ModList.get()
|
if (ModList.get()
|
||||||
.isLoaded(namespace.id)) {
|
.isLoaded(namespace.id)) {
|
||||||
tag = BlockTags.makeWrapperTag(id.toString());
|
tag = BlockTags.makeWrapperTag(id.toString());
|
||||||
if (generateData)
|
REGISTRATE.addDataGenerator(ProviderType.BLOCK_TAGS, prov -> prov.getOrCreateTagBuilder(tag));
|
||||||
REGISTRATE.addDataGenerator(ProviderType.BLOCK_TAGS, prov -> prov.getOrCreateTagBuilder(tag));
|
|
||||||
} else {
|
} else {
|
||||||
tag = new EmptyNamedTag<>(id);
|
tag = new EmptyNamedTag<>(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AllBlockTags(boolean generateData) {
|
|
||||||
this(MOD, "", generateData);
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean matches(BlockState block) {
|
public boolean matches(BlockState block) {
|
||||||
return tag.contains(block.getBlock());
|
return tag.contains(block.getBlock());
|
||||||
|
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
||||||
|
|
||||||
import com.simibubi.create.AllBlocks;
|
import com.simibubi.create.AllBlocks;
|
||||||
import com.simibubi.create.AllTags.AllBlockTags;
|
import com.simibubi.create.AllTags.AllBlockTags;
|
||||||
|
import com.simibubi.create.Create;
|
||||||
import com.simibubi.create.content.contraptions.components.actors.AttachedActorBlock;
|
import com.simibubi.create.content.contraptions.components.actors.AttachedActorBlock;
|
||||||
import com.simibubi.create.content.contraptions.components.actors.HarvesterBlock;
|
import com.simibubi.create.content.contraptions.components.actors.HarvesterBlock;
|
||||||
import com.simibubi.create.content.contraptions.components.actors.PortableStorageInterfaceBlock;
|
import com.simibubi.create.content.contraptions.components.actors.PortableStorageInterfaceBlock;
|
||||||
|
@ -62,6 +63,7 @@ import net.minecraft.state.properties.BlockStateProperties;
|
||||||
import net.minecraft.state.properties.DoubleBlockHalf;
|
import net.minecraft.state.properties.DoubleBlockHalf;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.Direction;
|
import net.minecraft.util.Direction;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
@ -72,6 +74,7 @@ public class BlockMovementChecks {
|
||||||
private static final List<BrittleCheck> BRITTLE_CHECKS = new ArrayList<>();
|
private static final List<BrittleCheck> BRITTLE_CHECKS = new ArrayList<>();
|
||||||
private static final List<AttachedCheck> ATTACHED_CHECKS = new ArrayList<>();
|
private static final List<AttachedCheck> ATTACHED_CHECKS = new ArrayList<>();
|
||||||
private static final List<NotSupportiveCheck> NOT_SUPPORTIVE_CHECKS = new ArrayList<>();
|
private static final List<NotSupportiveCheck> NOT_SUPPORTIVE_CHECKS = new ArrayList<>();
|
||||||
|
public static final ResourceLocation NON_MOVABLE = new ResourceLocation(Create.ID, "non_movable");
|
||||||
|
|
||||||
// Registration
|
// Registration
|
||||||
// Add new checks to the front instead of the end
|
// Add new checks to the front instead of the end
|
||||||
|
@ -190,7 +193,7 @@ public class BlockMovementChecks {
|
||||||
return true;
|
return true;
|
||||||
if (state.getBlockHardness(world, pos) == -1)
|
if (state.getBlockHardness(world, pos) == -1)
|
||||||
return false;
|
return false;
|
||||||
if (AllBlockTags.NON_MOVABLE.matches(state))
|
if (state.getBlock().getTags().contains(NON_MOVABLE))
|
||||||
return false;
|
return false;
|
||||||
if (!AllConfigs.SERVER.kinetics.movableSpawners.get() && block instanceof SpawnerBlock)
|
if (!AllConfigs.SERVER.kinetics.movableSpawners.get() && block instanceof SpawnerBlock)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue