From c4209a92ae0b6ecffa9f1feb6f85ca8f9f6e3d5a Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Sun, 7 May 2023 21:27:05 +0200 Subject: [PATCH] Tweak-a-boo - Fixed z-fighting on the inner top face of scaffolds - Added a ponder category for recently added/changed blocks - Nudged a handful of item transforms - Fixed offset shaft rotation on encased large cogwheels --- src/generated/resources/.cache/cache | 2 +- .../resources/assets/create/lang/en_us.json | 2 + .../BracketedKineticBlockEntityRenderer.java | 19 +++--- .../relays/encased/EncasedCogInstance.java | 3 + .../relays/encased/EncasedCogRenderer.java | 13 +++- .../filtering/FilteringBehaviour.java | 3 +- .../create/foundation/ponder/PonderTag.java | 9 ++- .../ponder/content/PonderIndex.java | 13 ++++ .../models/block/cart_assembler/block.json | 38 ++++++----- .../block/cart_assembler/minecart_anchor.json | 64 ++++++++++-------- .../block/contraption_controls/item.json | 1 + .../create/models/block/controls/item.json | 1 + .../models/block/creative_motor/item.json | 6 +- .../models/block/large_water_wheel/item.json | 2 +- .../block/redstone_link/transmitter.json | 26 ++++++- .../create/models/block/scaffold/block.json | 14 ++-- .../textures/block/bearing_top_wooden.png | Bin 444 -> 0 bytes .../textures/block/cart_assembler_side.png | Bin 250 -> 323 bytes .../textures/block/cart_assembler_top.png | Bin 443 -> 520 bytes 19 files changed, 145 insertions(+), 71 deletions(-) delete mode 100644 src/main/resources/assets/create/textures/block/bearing_top_wooden.png diff --git a/src/generated/resources/.cache/cache b/src/generated/resources/.cache/cache index 76e8cc790..97a95c228 100644 --- a/src/generated/resources/.cache/cache +++ b/src/generated/resources/.cache/cache @@ -582,7 +582,7 @@ bf2b0310500213ff853c748c236eb5d01f61658e assets/create/blockstates/yellow_toolbo 7f39521b211441f5c3e06d60c5978cebe16cacfb assets/create/blockstates/zinc_block.json b7181bcd8182b2f17088e5aa881f374c9c65470c assets/create/blockstates/zinc_ore.json fcaad84ac4ebdb1e6d9301b77245ce855dbde503 assets/create/lang/en_ud.json -988c876b2f101c2b02a27f00090d0d1348c01cc3 assets/create/lang/en_us.json +03146c18c43580d65e41b94f3b9e1b3846768cc5 assets/create/lang/en_us.json 487a511a01b2a4531fb672f917922312db78f958 assets/create/models/block/acacia_window.json b48060cba1a382f373a05bf0039054053eccf076 assets/create/models/block/acacia_window_pane_noside.json 3066db1bf03cffa1a9c7fbacf47ae586632f4eb3 assets/create/models/block/acacia_window_pane_noside_alt.json diff --git a/src/generated/resources/assets/create/lang/en_us.json b/src/generated/resources/assets/create/lang/en_us.json index ad3504295..1e7252e07 100644 --- a/src/generated/resources/assets/create/lang/en_us.json +++ b/src/generated/resources/assets/create/lang/en_us.json @@ -2186,6 +2186,8 @@ "create.ponder.tag.redstone.description": "Components which help with redstone engineering", "create.ponder.tag.contraption_assembly": "Block Attachment Utility", "create.ponder.tag.contraption_assembly.description": "Tools and Components used to assemble structures moved as an animated Contraption", + "create.ponder.tag.recently_updated": "Recently Updated", + "create.ponder.tag.recently_updated.description": "Components that have been added or changed significantly in the latest versions of Create", "create.ponder.tag.fluids": "Fluid Manipulators", "create.ponder.tag.fluids.description": "Components which help relaying and making use of Fluids", "create.ponder.tag.decoration": "Aesthetics", diff --git a/src/main/java/com/simibubi/create/content/contraptions/relays/elementary/BracketedKineticBlockEntityRenderer.java b/src/main/java/com/simibubi/create/content/contraptions/relays/elementary/BracketedKineticBlockEntityRenderer.java index 3962ca079..5084a0bce 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/relays/elementary/BracketedKineticBlockEntityRenderer.java +++ b/src/main/java/com/simibubi/create/content/contraptions/relays/elementary/BracketedKineticBlockEntityRenderer.java @@ -24,8 +24,8 @@ public class BracketedKineticBlockEntityRenderer extends KineticBlockEntityRende } @Override - protected void renderSafe(BracketedKineticBlockEntity be, float partialTicks, PoseStack ms, MultiBufferSource buffer, - int light, int overlay) { + protected void renderSafe(BracketedKineticBlockEntity be, float partialTicks, PoseStack ms, + MultiBufferSource buffer, int light, int overlay) { if (Backend.canUseInstancing(be.getLevel())) return; @@ -39,17 +39,12 @@ public class BracketedKineticBlockEntityRenderer extends KineticBlockEntityRende // mesh properly Axis axis = getRotationAxisOf(be); - BlockPos pos = be.getBlockPos(); - Direction facing = Direction.fromAxisAndDirection(axis, AxisDirection.POSITIVE); renderRotatingBuffer(be, CachedBufferer.partialFacingVertical(AllPartialModels.SHAFTLESS_LARGE_COGWHEEL, be.getBlockState(), facing), ms, buffer.getBuffer(RenderType.solid()), light); - float offset = getShaftAngleOffset(axis, pos); - float time = AnimationTickHolder.getRenderTime(be.getLevel()); - float angle = ((time * be.getSpeed() * 3f / 10 + offset) % 360) / 180 * (float) Math.PI; - + float angle = getAngleForLargeCogShaft(be, axis); SuperByteBuffer shaft = CachedBufferer.partialFacingVertical(AllPartialModels.COGWHEEL_SHAFT, be.getBlockState(), facing); kineticRotationTransform(shaft, be, axis, angle, light); @@ -57,6 +52,14 @@ public class BracketedKineticBlockEntityRenderer extends KineticBlockEntityRende } + public static float getAngleForLargeCogShaft(SimpleKineticBlockEntity be, Axis axis) { + BlockPos pos = be.getBlockPos(); + float offset = getShaftAngleOffset(axis, pos); + float time = AnimationTickHolder.getRenderTime(be.getLevel()); + float angle = ((time * be.getSpeed() * 3f / 10 + offset) % 360) / 180 * (float) Math.PI; + return angle; + } + public static float getShaftAngleOffset(Axis axis, BlockPos pos) { float offset = 0; double d = (((axis == Axis.X) ? 0 : pos.getX()) + ((axis == Axis.Y) ? 0 : pos.getY()) diff --git a/src/main/java/com/simibubi/create/content/contraptions/relays/encased/EncasedCogInstance.java b/src/main/java/com/simibubi/create/content/contraptions/relays/encased/EncasedCogInstance.java index 38ab029e7..f02553fc8 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/relays/encased/EncasedCogInstance.java +++ b/src/main/java/com/simibubi/create/content/contraptions/relays/encased/EncasedCogInstance.java @@ -14,6 +14,7 @@ import com.simibubi.create.content.contraptions.base.IRotate; import com.simibubi.create.content.contraptions.base.KineticBlockEntity; import com.simibubi.create.content.contraptions.base.KineticBlockEntityInstance; import com.simibubi.create.content.contraptions.base.flwdata.RotatingData; +import com.simibubi.create.content.contraptions.relays.elementary.BracketedKineticBlockEntityRenderer; import com.simibubi.create.foundation.utility.Iterate; import net.minecraft.core.Direction; @@ -60,6 +61,8 @@ public class EncasedCogInstance extends KineticBlockEntityInstanceXN$dVgT`}0axzPN zKVF+oKy)&N#dBerPHeGOHCZaH(1%QeKv75{K65cnL?Ah6Eki66KPeJUF&9NZ9z<9w zPf{pYhfFje4lGS1tLvOtnMqPN8BK*iM^7eERw^@DDn@cUPedV7Nh4D@8mXzNPcj%@ zoKI`HSu_ zLqjJgCoV27JUl#9R8(7ATSi7kMMXtHK|w-7LPtkOH6af$9u7Jr5ke~zPcj%uFBd*3 z5>q%DJ0=le!#_I!000SaNLh0L01m?d01m?e$8V@)0001uNq*ZU2JLAxOd|0RLc||nW8O9>W1rY}%$`aI@SQaIpfXXpoEMk7GPS3*=gC=0 zUDWyz>uRHqG1Aa(qTNlPMga;l2^e?_g^GtL49AB!3`@hqVVb7lxp=5*DrH_qzQK*S u-i5ETa9tdD-_Y-2^sWjOMV>#-ZLt1tnCzMh(9J Y05ptECq#PA0000007*qoM6N<$g10zVhyVZp diff --git a/src/main/resources/assets/create/textures/block/cart_assembler_top.png b/src/main/resources/assets/create/textures/block/cart_assembler_top.png index e31c0eb896d428a753d8dd50798ecb329441ad80..0e18d893fb44ec37bed8fda2e69556c07b84b597 100644 GIT binary patch delta 494 zcmV)3M@B|QLqkJCLP9}7K}AJHR8&+*QAS&8SX*0LR%KF6R!dliOfy+3O<_n&d_O{T zH+#Hmiob8G=9q4`SYet@LUJ;4v{;M1ZeE;EIcP0YQ&VcTSbv1abZfa;U}Il{#&c}3 zR#jwDUYky|!MLHTq)<~)HCZZJYF9>bJ3n+XkCu^IT3RzGCp%L zEKMYgv1f?8ZL8>+g~fBN(1%ThKum)`L_|d1!%js2000SaNLh0L01mZ;h6l_!+Lb~fK^4rIA;uT6i?5DZIuaIAF1xQKEHI( zDC51~FAY9f!q%ut3N$3r>)URkJ9K{k_zbRuuW!4fjtXU-v$S&l$+H!lFo+v10QyO5 kalq2o-7jNpQ}c?kKUm-uU$QZB-2eap07*qoM6N<$f;EfLUjP6A delta 417 zcmV;S0bc%y1iJ%}B!8$-OjJdy=$WhLn61!5uRZF{_H zjIn2Hxmj+vSaP&jYPMKxu~wCjk6xTlVVX`}n@(ViQCNpea&mG_g+NS$KwEZIOME|D zYFJuoS4MI>R%KE`bT?IGQa^MuLUJ-&TU%OMT1{a{R8&+sXn!qJQ&UY=OGr^hGhrx4 zQAIUbDl=IsM@L6SMn*+NMMOkILqkJCLP9}7K`c!q-4h$V0002aNklh;Qe?)VaKdQ z-UG}Z8l#a7)UY2;iZ`=epb6mdn9l(;l}@yQo)KxKi0B$I+r)tySX?aj`#!YH(rzR6 zsP>C#)bk4yOL~%w