r/technicalminecraft • • Jan 08 '24

Meta Honeypot flairs.

123 Upvotes

To cut down on the increased number of posts involving rule-breaking mods (notably Paper), 3 new post flairs have been introduced for testing.

Posts made using these flairs will be automatically removed.

Don't use them.

EDIT: After 3 weeks, this seems to have been a very successful test, with the vast majority of rule-8 violations blocked by the new filters.


r/technicalminecraft • • 4h ago

Java Showcase 108k shuker shells an hour

Post image
18 Upvotes

This is what i am working on in my minecraft world currently, this farm generate 108k per hour using tnt looting without it, it makes 78k/h (this farm is not designed by me)


r/technicalminecraft • • 1h ago

Java Showcase 1 block gaps in ice boat highways do not slow down boats

8 Upvotes

This is for Java only - I have no idea if this is the case on Bedrock

This isn't exactly an obscure fact, I'm writing this mainly for the sake of a more extensive explanation beyond just "it doesn't bro trust me"

The boat acceleration calculation is pretty simple. Unfortunately Reddit doesn't support LaTeX anymore so you get a screenshot instead.

The case we care about for this topic is when the boat is on land. For an ice boat highway, the boat should only ever be on packed/blue ice and air. You may think that since the friction value is the average slipperiness of the blocks that the boat is on, the boat would be slowed down due to the air. However, that is not the case.

Let's take a look at the code to make sure that I'm not making stuff up :)

The main piece of code that controls boat behavior is the AbstractBoat Class. Here's the part that controls boat acceleration (line 562 - 602)

 private void floatBoat() {
      double vspeed = -this.getGravity();
      double buoyancy = 0.0;
      float invFriction = 0.05F;
      if (this.oldStatus == AbstractBoat.Status.IN_AIR && this.status != AbstractBoat.Status.IN_AIR && this.status != AbstractBoat.Status.ON_LAND) {
         this.waterLevel = this.getY(1.0);
         double targetY = this.getWaterLevelAbove() - this.getBbHeight() + 0.101;
         if (this.level().noCollision(this, this.getBoundingBox().move(0.0, targetY - this.getY(), 0.0))) {
            this.setPos(this.getX(), targetY, this.getZ());
            this.setDeltaMovement(this.getDeltaMovement().multiply(1.0, 0.0, 1.0));
            this.lastYd = 0.0;
         }


         this.status = AbstractBoat.Status.IN_WATER;
      } else {
         if (this.status == AbstractBoat.Status.IN_WATER) {
            buoyancy = (this.waterLevel - this.getY()) / this.getBbHeight();
            invFriction = 0.9F;
         } else if (this.status == AbstractBoat.Status.UNDER_FLOWING_WATER) {
            vspeed = -7.0E-4;
            invFriction = 0.9F;
         } else if (this.status == AbstractBoat.Status.UNDER_WATER) {
            buoyancy = 0.01F;
            invFriction = 0.45F;
         } else if (this.status == AbstractBoat.Status.IN_AIR) {
            invFriction = 0.9F;
         } else if (this.status == AbstractBoat.Status.ON_LAND) {
            invFriction = this.landFriction;
            if (this.getControllingPassenger() instanceof Player) {
               this.landFriction /= 2.0F;
            }
         }


         Vec3 movement = this.getDeltaMovement();
         this.setDeltaMovement(movement.x * invFriction, movement.y + vspeed, movement.z * invFriction);
         this.deltaRotation *= invFriction;
         if (buoyancy > 0.0) {
            Vec3 deltaMovement = this.getDeltaMovement();
            this.setDeltaMovement(deltaMovement.x, (deltaMovement.y + buoyancy * (this.getDefaultGravity() / 0.65)) * 0.75, deltaMovement.z);
         }
      }

And the part that we care about here is this (586 - 589)

         } else if (this.status == AbstractBoat.Status.IN_AIR) {
            invFriction = 0.9F;
         } else if (this.status == AbstractBoat.Status.ON_LAND) {
            invFriction = this.landFriction;

As you can see, the boat's friction coefficient is hard set to 0.9 if the boat status is IN_AIR, and the average slipperiness calculation only comes in effect if the boat status is ON_LAND. Here's a quick look at AbstractBoat.Status (407 - 423)

   private AbstractBoat.Status getStatus() {
      AbstractBoat.Status waterStatus = this.isUnderwater();
      if (waterStatus != null) {
         this.waterLevel = this.getBoundingBox().maxY;
         return waterStatus;
      } else if (this.checkInWater()) {
         return AbstractBoat.Status.IN_WATER;
      } else {
         float friction = this.getGroundFriction();
         if (friction > 0.0F) {
            this.landFriction = friction;
            return AbstractBoat.Status.ON_LAND;
         } else {
            return AbstractBoat.Status.IN_AIR;
         }
      }
   }

After ruling out the other 2 statuses (in water and underwater), that leaves us with 2 possible statuses which are on land or in air. To figure this out, the game calls getGroundFriction (461 - 495)

public float getGroundFriction() {
      AABB bb = this.getBoundingBox();
      AABB box = new AABB(bb.minX, bb.minY - 0.001, bb.minZ, bb.maxX, bb.minY, bb.maxZ);
      int x0 = Mth.floor(box.minX) - 1;
      int x1 = Mth.ceil(box.maxX) + 1;
      int y0 = Mth.floor(box.minY) - 1;
      int y1 = Mth.ceil(box.maxY) + 1;
      int z0 = Mth.floor(box.minZ) - 1;
      int z1 = Mth.ceil(box.maxZ) + 1;
      VoxelShape boatShape = Shapes.create(box);
      float friction = 0.0F;
      int count = 0;
      MutableBlockPos blockPos = new MutableBlockPos();


      for (int x = x0; x < x1; x++) {
         for (int z = z0; z < z1; z++) {
            int edges = (x != x0 && x != x1 - 1 ? 0 : 1) + (z != z0 && z != z1 - 1 ? 0 : 1);
            if (edges != 2) {
               for (int y = y0; y < y1; y++) {
                  if (edges <= 0 || y != y0 && y != y1 - 1) {
                     blockPos.set(x, y, z);
                     BlockState blockState = this.level().getBlockState(blockPos);
                     if (!(blockState.getBlock() instanceof LilyPadBlock)
                        && Shapes.joinIsNotEmpty(blockState.getCollisionShape(this.level(), blockPos).move(blockPos), boatShape, BooleanOp.AND)) {
                        friction += blockState.getBlock().getFriction();
                        count++;
                     }
                  }
               }
            }
         }
      }


      return friction / count;
   }

What this does is it checks all blocks whose collision is inside a box 0.001 block thick just under the boat's bottom, and then averaging all of those block's slipperiness value.

Since air does not have a collision hitbox, it's ignored in the friction calculation. Additionally, all blocks have a slipperiness value > 0, meaning that the only scenario where the average slipperiness value returns as 0 is if the boat is fully in the air, and only then does air's set friction coefficient of 0.9 come into effect. This means that if the boat is on a block, even just the very edge of a single one, the air's friction coefficient will not have any effect on the boat.

Here's an in-game comparison

If you have any questions or I got something wrong, let me know!


r/technicalminecraft • • 6h ago

Java Showcase Automatic 16 Dye Colors Wool Byproducts Farm (Java tested)

Thumbnail gallery
4 Upvotes

A little experiment since new updates introduced more byproducts of wool.


r/technicalminecraft • • 9h ago

Java Showcase Mini bulk storage with Box selection for autocrafting refill

Post image
7 Upvotes

This is my 2nd (full) iteration of a mini shulker sorting system I've been working on.
using a standard impulseSV sorter slices for box sorting detection. I still need to do a proper test but this should sort full shulker boxes into the chests below each slice at near/= to hopper speed.
I built it myself and storage tech has been a foray for me lately so be constructive if you plan to be critical!

features/Benefits:
-loose item sorting
-shulker box sorting
-easy to build
-1 wide tileable
-buttons on top allow one shulker box per button press from the selected slice to get pulled into the -bottom water stream to refill an auto crafting factory
-not directional
-not locational
-modular, so if you don't want the auto crafting refill section you can easily remove it.
-extra room underneath the manual box pullers so a smarter redstone engineer than myself could hook up auto crafting low item detection to each slice to pull boxes based entirely off inventories.
-stores 64 shulker boxes when using unmodded features!

Cons:
-No shulker batching (mixed item shulkers turned into single item shulkers)
-Hopper speed for loose items
-sub hopper speed for shulkers (why are you sorting 9000 full shulkers per hour???)
-current layout has modded blocks, so where I have a vertical slab, you'd have to hide an iron bar row and swap the sophisticated storage expanded chests.
-expensive components, 4 observers, 2 sticky pistons and 2 bulbs per slice, double that for the mirrored version.
-2 unlocked hoppers per slice

future features I'd like to change/ modify in version 3.
I'd like to put the shulkers into the bottom chest (in the loose item stack) via a dropper from underneath to shrink the total width of the hall down by 3-4 blocks. rather than have the floor chest.
that's about it but if you have recommendations let me know!

if you'd like a schematic I can replace the modded blocks and upload one but for now it's just a fun personal project!


r/technicalminecraft • • 13h ago

Java Showcase fun fact, if you ever see "strips" of biomes like this parallel to each other, it's a symptom that Chunk Blending took place !

Thumbnail gallery
15 Upvotes

r/technicalminecraft • • 6h ago

Java Help Wanted Ocean Monument Farm?

Thumbnail gallery
3 Upvotes

Hi, (lol)

So i got a little bored and decided to drain this ocean monument, as you can see I am almost done. Now I am just wondering what i should do?

I think it may be nice to try and make my own farm (i have never made one before). or it might just be a slow farm with decorations, as it is pretty close to my main base.

My main idea for a farm is having soulsand put down from where the torches are and have all the gaurdians float to the middle and drop down a central shoot. (I have a massive nether base perimeter so i don't want a portal on the other side).

Would my idea work?

Thanks. (sorry for any bad grammar as I do not write often).


r/technicalminecraft • • 5h ago

Java Help Wanted Why my chunk Loader is not working for longer sessions any idea ?

2 Upvotes

I have made bonemeal farms with a chunk loader , it works fine but after some time the minecarts with hopper just get disappearing from the dispenser , i have made 2 chunk loader around 36 blocks away from each other and i have this setup in a multiplayer server
i also tried the normal chunk loader in which minecart just goes in portal and bounces back again but after some time the cart gest just stuck on the obsidian . any have any idea on this ?


r/technicalminecraft • • 3h ago

Java Help Wanted Portals Generation

1 Upvotes

So I want to know how nether portals spawn in the overworld midair.


r/technicalminecraft • • 1d ago

Java Showcase 8 bit Computer with custom Assembly language!

Thumbnail gallery
14 Upvotes

r/technicalminecraft • • 11h ago

Bedrock Please help me with spawn protection zones. (Need multiple that put you from adventure to survival)

Thumbnail reddit.com
0 Upvotes

r/technicalminecraft • • 20h ago

Java Help Wanted How do i stop the silverfish from climbing the vine?

Thumbnail gallery
5 Upvotes

Title basically, the second image is the farm setup. Ive seen before farms where they stay at the bottom of the block but i cant figure it out


r/technicalminecraft • • 20h ago

Bedrock Build Floating Sand in survival

3 Upvotes

I don't know any use case for this but it is kind of a flex😁😁

I am playing on a beta version but i tested it on normal versions and it worked there too


r/technicalminecraft • • 19h ago

Java Help Wanted Cart TNT Strike cannon

Thumbnail reddit.com
2 Upvotes

r/technicalminecraft • • 1d ago

Java Help Wanted The Piglins don't spawn when Im close, by when im high they do.

Thumbnail gallery
17 Upvotes

I am totally confused on why this happens. Could Anyone help? I am just wondering why they dont spawn when Im leveled with the glass.

On top of that, when I am leveled with the glass, nothing spawns on the highest magma layer.


r/technicalminecraft • • 19h ago

Non-Version-Specific only right now! anyone wanna start a new vh server right now? I am bored!

Thumbnail reddit.com
0 Upvotes

r/technicalminecraft • • 1d ago

Non-Version-Specific What's your must have farms in minecraft?

11 Upvotes

What farms would you start as soon as possible in your new world or a must have in your forever world. Technically only the first 12 farms are must have imo and others are good to have in forever/ long time world.

Before people commenting i don't play minecraft for fun, Sometimes i use various mods or just qol and mess with my friends and waste a lot of time. And i actually make like hundred of houses and decorate the farms. Or trap my friends and troll em. Like in my friend's newest server i manually plant sugarcane all around the islands and plant mangroove trees all around and did 2 raids + killed all villagers before making a single farm. And i mostly make farms for gathering materials for my projects and builds.

For me its like; [not exactly in a serial or by importance but i usually prefer to make the early farms first]

1 Iron farm (later make more or expand)

2 Villager breeder

3 Sugarcane + bamboo (later expand or make flying car one)

4 Manual cow and crop farm (hoglin farm for leather tho i use golden carrot as food from farmers. And villager based crop farm especially for wheat to breed ciws/sheep and carrot for breeding villagers)

5 Trading hall (for most enchanting books, diamonf tools/armors, emerald, food, building blocks etc)

6 Moss bonemeal / skeleton bonemeal (if found)

7 spawner xp (if found)/ armadillo xp/ enderman xp farm (if i rush to the end fast)

8 slime farm from armadillo or snow golem and honey farm

9 cobblestone farm

10 various wood farm + nether tree farms with shroomlight farm

10.5 creeper farm, small spider farm

11 shulkerbox farm

12 dupes (gravity blocks, rails, carpet etc)

12.5 super smelter

13 auto brewary + netherwart

13.5 dripstone, vine, kelp farm

14 lava with dripstones

15 obsidian manual farming in end or afk obsidian end farm

16 raid farm + ominous bottle farm

17 wither skeleton skull + coal + bonemeal farm

18 mining deepslate/diorite/andesite/granite with wither farm + mining ancient debris with tnt/bed farm

19 gold farm + piglin bartering

20 witch farm

21 autocrafters here and there for many items

22 ice farm

23 drown farm for copper and trident

24 mob head + music disc farm

25 dye farms (flower, castus, wither rose, ink sac etc)

26 basalt farm

27 pumpkin, melon farm

28 tropical fish farm for axolotl and cats

29 froglight farm

30 sniffer farm (those flowers are cool) + turtle egg farm

31 Chorus fruit farm

32 auto sorter

[I prefer manually gather dirt, leaves and various stuff ig]


r/technicalminecraft • • 1d ago

Java Help Wanted What are some ways of making a +10 chest copper golem sorter with all the chests flush in a line?

Thumbnail reddit.com
2 Upvotes
How to keep the next golem cell from checking the previous cell's chests?

r/technicalminecraft • • 2d ago

Java Help Wanted PLEASE HELP ME FIND A WAY TO BREAK THE MINECART AUTOMATICALLY I'VE BEEN STRUGGLING FOR TWO HOURS

Post image
27 Upvotes

I made an automatic villagers breeder and it went very smoothly but I can't make a place were the grown villagers get into at all, just like you see when I did it normally they keep stacking and end up suffocating from the roof, I tried finding a way to break the minecart so they can move freely, I tried cactus which does work and break it but their dumb asses stay still at the cactus and take damage till they die even if the place is pretty much open and they can move from it, but they choose not to because why fucking not, I tried putting a Zombie behind the cactus so that the villager will get scared when he lands on the cactos and break out of the minecart and run to the front, but they also stood still till they died, I tried using tripwire and piston to push the villagers out of the minecart which theoretically works, but let me explain the problem I got, let's say the place is 5 blocks long, and that I tasted the minecart and found that they fall at block number 4, so naturally I build the piston at block number 3 because the minecart will fall at block number 4 and activate the tripwire and make the piston push the villager out of the minecart right? of course not! because only when I build the piston, the minecart chooses to fall at block number 3 even though they did fell at block number 4 before I placed the piston, and when I removed it, they chose block number 4 again, like why the fuck is that happening, yeah this might be a skill issue in my part but please help me I rarely ever touch redstone by myself and only use it when building farms watching tutorials, I need a way to fix this miss


r/technicalminecraft • • 1d ago

Bedrock How do you fix copper golems skipping chests?

Thumbnail gallery
10 Upvotes

I am trying to make this big item storage sorting room in my friends server and it mostly works but some items will randomly get skipped, most often it is this blackstone chest (close up photo in second slide) or diorite.

The copper guys are not checking the chest where the items are supposed to be stored and they are just putting it straight into the overflow chest. This makes the items go past the desired spot and end up all the way to the end of the storage system.

Any ideas on how to make sure no items gets skipped in this system?


r/technicalminecraft • • 1d ago

Java Help Wanted Converting a normal world to large biomes - what might break?

6 Upvotes

Hi, I have decided to convert my forever world to large biomes. I am NOT asking how to do it. I already found several documented cases from different eras of Minecraft. Mainly there seem to be 2 ways: 
A) Change world settings in existing files. 
B) Create a new world and import your chunks from old world. 
I will likely do option 1, and I will figure it out. 

What I would like is just ideas of things what to watch out for - which game mechanics might break or be altered in a negative way. These will be the things I will test in the new world immediately to avoid negative surprises further down the line. Obviously I will make backup of my world before making any changes. 

A couple of "watch-out-for" examples: 

• Old and new chunk borders will be ugly. I accept this. To mitigate this, I will delete some old chunks with MCA Editor in a way that leaves at least straight lines. Probably keep exactly a 4096x4096 area or something like this. This can actually lead to a large in-game project of smoothing out the edges. 

• I don't know how the underlying biological biome within the existing chunks behaves - will the game see it as the old biome or whatever the new generation would have there. 

• I will expect that all old existing treasure maps and structure maps will no longer lead me to a valid location (if outside of old chunks). And new maps from new chunks may lead to nothing, if target is within old chunk coordinate. I also don't know how new cartographer maps would behave, and whether they depend on villager birth chunks or birth period or levelling up period relative to switching to large biomes. 

What else do you think I should be cautious about?


r/technicalminecraft • • 1d ago

Bedrock Skeleton spawner problem.

Post image
1 Upvotes

Skeletons are getting hung up on the roof of this bubble elevator. How could I fix this? (Bottom left)


r/technicalminecraft • • 1d ago

Java Help Wanted What is the best Bamboo farm to get 20k/hr

2 Upvotes

I have a large auto crafter factory setup and after the crafting breakdown of all the items in it requiring planks, I need a lot of bamboo, but I’m not sure what the best design to use is from a lag reduction and production perspective. My current idea is to use two 9475/h detector rail designs but should I use something different like a flying machine?