diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 3a6a51b4e..1efa72840 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -108,6 +108,7 @@ body: label: Minecraft Version description: The version of Minecraft you were using when the bug occured options: + - "1.19.2" - "1.18.2" - "1.18.1" - "1.18" diff --git a/.github/config/labels.yml b/.github/config/labels.yml index c5a1bc5a6..f3378f6c1 100644 --- a/.github/config/labels.yml +++ b/.github/config/labels.yml @@ -8,3 +8,5 @@ - "1.17" 1.18: - "1.18" +1.19: + - "1.19" diff --git a/src/generated/resources/.cache/4c6aefd01d2f404cb6dd8a4f408ce8f3778751da b/src/generated/resources/.cache/4c6aefd01d2f404cb6dd8a4f408ce8f3778751da index 506f1ccf6..ac6048cd8 100644 --- a/src/generated/resources/.cache/4c6aefd01d2f404cb6dd8a4f408ce8f3778751da +++ b/src/generated/resources/.cache/4c6aefd01d2f404cb6dd8a4f408ce8f3778751da @@ -1,4 +1,4 @@ -// 1.19.2 2022-09-23T20:53:24.8228086 Lang merger +// 1.19.2 2022-09-25T12:22:44.7537946 Lang merger 4b9ffd38401c3366dc8fba48bd867b580bd7a016 assets/create/lang/en_us.json c2d8149ca2c7db92f0c8c3c7d68e7e63302878df assets/create/lang/unfinished/de_de.json a0e1127515d1cf6868741eaa864d9342f552a99c assets/create/lang/unfinished/es_cl.json @@ -12,7 +12,7 @@ b88ce42806a06cd65203e2e296057e0911733d06 assets/create/lang/unfinished/pl_pl.jso c3bc8db145cdc14dc3403fdf7f9bdf4fc3ed5f45 assets/create/lang/unfinished/pt_br.json 338d90442da4075a5c8facbc0e9fca8d2accfcd2 assets/create/lang/unfinished/pt_pt.json c3afd5e860c6e2956cda4d55ee1167e8b987ade6 assets/create/lang/unfinished/ro_ro.json -ba8e498f1cdc26d5af6b22b57aafc70358d42c4a assets/create/lang/unfinished/ru_ru.json +ba3c585e3ba61138fec85ece927b0c47c98e33e8 assets/create/lang/unfinished/ru_ru.json 5f2d947d98adbcc2e79eeb792352a4b5596e76dc assets/create/lang/unfinished/uk_ua.json -135f81829c79a0f4209ec02bfc0acc817de87e94 assets/create/lang/unfinished/zh_cn.json +a38e0091abafd7e6caa62e20fae7b7d9541abb99 assets/create/lang/unfinished/zh_cn.json 400a4ebd430a0ca749898a3d8a068a7f15d2e62a assets/create/lang/unfinished/zh_tw.json diff --git a/src/generated/resources/assets/create/lang/unfinished/ru_ru.json b/src/generated/resources/assets/create/lang/unfinished/ru_ru.json index 134885ec9..8cbcf7de2 100644 --- a/src/generated/resources/assets/create/lang/unfinished/ru_ru.json +++ b/src/generated/resources/assets/create/lang/unfinished/ru_ru.json @@ -1,5 +1,5 @@ { - "_": "Missing Localizations: 4", + "_": "Missing Localizations: 2", "_": "->------------------------] Game Elements [------------------------<-", @@ -1487,15 +1487,15 @@ "create.schedule.condition.threshold.equal": "точно", "create.schedule.condition.threshold.x_units_of_item": "%1$s %2$s (%3$s)", "create.schedule.condition.threshold.matching_content": "Определённое содержимое", - "create.schedule.condition.threshold.anything": "UNLOCALIZED: Anything", + "create.schedule.condition.threshold.anything": "предметов", "create.schedule.condition.threshold.item_measure": "Количество предметов", "create.schedule.condition.threshold.items": "штук", "create.schedule.condition.threshold.stacks": "стаков", "create.schedule.condition.threshold.buckets": "вёдер", "create.schedule.condition.threshold.status": "Груз: %1$s/%2$s %3$s", - "create.schedule.condition.threshold.place_item": "Основной предмет", + "create.schedule.condition.threshold.place_item": "Эталонный предмет", "create.schedule.condition.threshold.place_item_2": "Можно использовать фильтры", - "create.schedule.condition.threshold.place_item_3": "UNLOCALIZED: Leave empty to match any", + "create.schedule.condition.threshold.place_item_3": "Оставьте пустым, чтобы выбрать все предметы", "create.schedule.condition.fluid_threshold": "Состояние жидкого груза", "create.schedule.condition.item_threshold": "Состояние груза", "create.schedule.condition.redstone_link": "Беспроводной сигнал", diff --git a/src/generated/resources/assets/create/lang/unfinished/zh_cn.json b/src/generated/resources/assets/create/lang/unfinished/zh_cn.json index acd4159f2..795b9d0d7 100644 --- a/src/generated/resources/assets/create/lang/unfinished/zh_cn.json +++ b/src/generated/resources/assets/create/lang/unfinished/zh_cn.json @@ -1,5 +1,5 @@ { - "_": "Missing Localizations: 6", + "_": "Missing Localizations: 2", "_": "->------------------------] Game Elements [------------------------<-", @@ -1262,8 +1262,8 @@ "create.item_attributes.smokable.inverted": "不可被烟熏", "create.item_attributes.blastable": "可被高炉冶炼", "create.item_attributes.blastable.inverted": "不可被高炉冶炼", - "create.item_attributes.compostable": "UNLOCALIZED: can be composted", - "create.item_attributes.compostable.inverted": "UNLOCALIZED: cannot be composted", + "create.item_attributes.compostable": "可被堆肥", + "create.item_attributes.compostable.inverted": "不可被堆肥", "create.item_attributes.shulker_level": "潜影盒是%1$s的", "create.item_attributes.shulker_level.inverted": "潜影盒不是%1$s的", "create.item_attributes.shulker_level.full": "满", @@ -1487,7 +1487,7 @@ "create.schedule.condition.threshold.equal": "恰好", "create.schedule.condition.threshold.x_units_of_item": "%1$s%2$s%3$s", "create.schedule.condition.threshold.matching_content": "匹配内容", - "create.schedule.condition.threshold.anything": "UNLOCALIZED: Anything", + "create.schedule.condition.threshold.anything": "任意物品", "create.schedule.condition.threshold.item_measure": "物品度量", "create.schedule.condition.threshold.items": "个", "create.schedule.condition.threshold.stacks": "组", @@ -1495,7 +1495,7 @@ "create.schedule.condition.threshold.status": "货物:%1$s/%2$s %3$s", "create.schedule.condition.threshold.place_item": "参考物品", "create.schedule.condition.threshold.place_item_2": "可以使用过滤器", - "create.schedule.condition.threshold.place_item_3": "UNLOCALIZED: Leave empty to match any", + "create.schedule.condition.threshold.place_item_3": "留空以匹配任意物品", "create.schedule.condition.fluid_threshold": "流体货物条件", "create.schedule.condition.item_threshold": "物品货物条件", "create.schedule.condition.redstone_link": "无线红石", diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/ContraptionCollider.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/ContraptionCollider.java index f8258f762..6d0594123 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/ContraptionCollider.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/ContraptionCollider.java @@ -32,6 +32,7 @@ import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.core.Direction.Axis; import net.minecraft.core.Direction.AxisDirection; +import net.minecraft.nbt.CompoundTag; import net.minecraft.server.level.ServerPlayer; import net.minecraft.sounds.SoundEvents; import net.minecraft.sounds.SoundSource; @@ -373,6 +374,13 @@ public class ContraptionCollider { return entityMotion; if (!entity.isOnGround()) return entityMotion; + + CompoundTag persistentData = entity.getPersistentData(); + if (persistentData.contains("ContraptionGrounded")) { + persistentData.remove("ContraptionGrounded"); + return entityMotion; + } + if (cce.collidingEntities.containsKey(entity)) return entityMotion; if (entity instanceof ItemEntity) @@ -413,7 +421,7 @@ public class ContraptionCollider { .add(0, .25, 0) .scale(damage * 4)) .add(diffMotion); - + return VecHelper.clamp(added, 3); } diff --git a/src/main/java/com/simibubi/create/foundation/config/ContraptionMovementSetting.java b/src/main/java/com/simibubi/create/foundation/config/ContraptionMovementSetting.java index f197203bd..5aca81cdb 100644 --- a/src/main/java/com/simibubi/create/foundation/config/ContraptionMovementSetting.java +++ b/src/main/java/com/simibubi/create/foundation/config/ContraptionMovementSetting.java @@ -46,10 +46,11 @@ public enum ContraptionMovementSetting { } public static void registerDefaults() { - register(Blocks.BUDDING_AMETHYST, () -> AllConfigs.SERVER.kinetics.amethystMovement.get()); register(Blocks.SPAWNER, () -> AllConfigs.SERVER.kinetics.spawnerMovement.get()); + register(Blocks.BUDDING_AMETHYST, () -> AllConfigs.SERVER.kinetics.amethystMovement.get()); register(Blocks.OBSIDIAN, () -> AllConfigs.SERVER.kinetics.obsidianMovement.get()); register(Blocks.CRYING_OBSIDIAN, () -> AllConfigs.SERVER.kinetics.obsidianMovement.get()); + register(Blocks.RESPAWN_ANCHOR, () -> AllConfigs.SERVER.kinetics.obsidianMovement.get()); } public interface IMovementSettingProvider extends IForgeBlock { diff --git a/src/main/java/com/simibubi/create/foundation/mixin/EntityContraptionInteractionMixin.java b/src/main/java/com/simibubi/create/foundation/mixin/EntityContraptionInteractionMixin.java index c3ca0b870..0f057b9cf 100644 --- a/src/main/java/com/simibubi/create/foundation/mixin/EntityContraptionInteractionMixin.java +++ b/src/main/java/com/simibubi/create/foundation/mixin/EntityContraptionInteractionMixin.java @@ -141,6 +141,8 @@ public abstract class EntityContraptionInteractionMixin extends CapabilityProvid return; self.setOnGround(true); + self.getPersistentData() + .putBoolean("ContraptionGrounded", true); } @Inject(method = { "spawnSprintParticle" }, at = @At(value = "TAIL")) diff --git a/src/main/resources/assets/create/lang/ru_ru.json b/src/main/resources/assets/create/lang/ru_ru.json index 8a293b647..ef512be4d 100644 --- a/src/main/resources/assets/create/lang/ru_ru.json +++ b/src/main/resources/assets/create/lang/ru_ru.json @@ -1485,13 +1485,15 @@ "create.schedule.condition.threshold.equal": "точно", "create.schedule.condition.threshold.x_units_of_item": "%1$s %2$s (%3$s)", "create.schedule.condition.threshold.matching_content": "Определённое содержимое", + "create.schedule.condition.threshold.anything": "предметов", "create.schedule.condition.threshold.item_measure": "Количество предметов", "create.schedule.condition.threshold.items": "штук", "create.schedule.condition.threshold.stacks": "стаков", "create.schedule.condition.threshold.buckets": "вёдер", "create.schedule.condition.threshold.status": "Груз: %1$s/%2$s %3$s", - "create.schedule.condition.threshold.place_item": "Основной предмет", + "create.schedule.condition.threshold.place_item": "Эталонный предмет", "create.schedule.condition.threshold.place_item_2": "Можно использовать фильтры", + "create.schedule.condition.threshold.place_item_3": "Оставьте пустым, чтобы выбрать все предметы", "create.schedule.condition.fluid_threshold": "Состояние жидкого груза", "create.schedule.condition.item_threshold": "Состояние груза", "create.schedule.condition.redstone_link": "Беспроводной сигнал", diff --git a/src/main/resources/assets/create/lang/zh_cn.json b/src/main/resources/assets/create/lang/zh_cn.json index 459b5f282..f4be7ff19 100644 --- a/src/main/resources/assets/create/lang/zh_cn.json +++ b/src/main/resources/assets/create/lang/zh_cn.json @@ -1260,6 +1260,8 @@ "create.item_attributes.smokable.inverted": "不可被烟熏", "create.item_attributes.blastable": "可被高炉冶炼", "create.item_attributes.blastable.inverted": "不可被高炉冶炼", + "create.item_attributes.compostable": "可被堆肥", + "create.item_attributes.compostable.inverted": "不可被堆肥", "create.item_attributes.shulker_level": "潜影盒是%1$s的", "create.item_attributes.shulker_level.inverted": "潜影盒不是%1$s的", "create.item_attributes.shulker_level.full": "满", @@ -1483,6 +1485,7 @@ "create.schedule.condition.threshold.equal": "恰好", "create.schedule.condition.threshold.x_units_of_item": "%1$s%2$s%3$s", "create.schedule.condition.threshold.matching_content": "匹配内容", + "create.schedule.condition.threshold.anything": "任意物品", "create.schedule.condition.threshold.item_measure": "物品度量", "create.schedule.condition.threshold.items": "个", "create.schedule.condition.threshold.stacks": "组", @@ -1490,6 +1493,7 @@ "create.schedule.condition.threshold.status": "货物:%1$s/%2$s %3$s", "create.schedule.condition.threshold.place_item": "参考物品", "create.schedule.condition.threshold.place_item_2": "可以使用过滤器", + "create.schedule.condition.threshold.place_item_3": "留空以匹配任意物品", "create.schedule.condition.fluid_threshold": "流体货物条件", "create.schedule.condition.item_threshold": "物品货物条件", "create.schedule.condition.redstone_link": "无线红石",