Back to mods
IBCarpet project artwork

Modrinth · Minecraft mod

IBCarpet

A carpet extension mod and a port of JoaCarpet's insane behavior feature to the newer version of Minecraft. This is used to manipulate item entity RNG.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which IBCarpet release should I use?

Updated 2 months ago
Latest stable file 26.3-26.09.18
Game version 26.3
Loader Fabric

IBCarpet 26.3-26.09.18 targets 26.3 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is IBCarpet required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does IBCarpet 26.3-26.09.18 need?

26.3-26.09.18. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add IBCarpet without breaking your instance.

Built for IBCarpet 26.3-26.09.18. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 26.3-26.09.18. It targets 26.3 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 26.3-26.09.18. It opens that exact file at the source.

About this project

What does IBCarpet add?

ibcarpet

A carpet extension mod. A port of
JoaCarpet's insane behavior
feature to the newer version of Minecraft.

Insane behavior is used to test item entity RNG by giving user control over the
random number generator to forcibly generate highly unlikely numbers without
waiting for hours.

Currently, this extension supports item entity RNG controls over the following actions:

  • Breaking minecart
  • Piston breaking blocks
  • Breaking containers (chest, dropper, hopper)
  • Dispense RNG (dispenser, crafter, dropper)
  • Projectile

Usage

To start using IBCarpet (Insane Behaviors Carpet): /carpet insaneBehaviors true. Put false instead of true if you want to turn everything off.

By default, ibcarpet uses the trimodal distribution with an extremeness value of
0.5. The distributions provided by this mod can be configured using /carpet ibDistribution <distributionName>. Distributions controls how random numbers
are picked. Read the distribution description below to understand when to use
what.

Distributions

Triangle Distribution

This is the random number generator used by most of Minecraft's default item
entity position and velocity RNG. IBCarpet replaces these triangle distribution
random numbers with custom ones where the users can freely modify to fit their
needs. Some of the RNG replaced by IBCarpet are from a uniform distribution
instead of triangle distribution, but it does not affect the overall purpose of
IBCarpet at all.

Here's the current implementation of Minecraft's triangle distribution RNG:

default double triangle(final double mean, final double spread) {
  return mean + spread * (this.nextDouble() - this.nextDouble());
}

this.nextDouble() generates a number within [0, 1) uniformly. mean and
spread are constants most of the time, and they are not something we need to
worry about for understanding how to use IBCarpet.

this.nextDouble() - this.nextDouble() is what gives the shape of the triangle
distribution. If we run this a bunch of times and collect the outputs into a
histogram where the Y-axis is the probability of numbers within that range on
the X-axis getting picked, it will look like this:

Triangle Distribution

The shape looks like a triangle where the peak is at 0, and the frequency
decreases as the RNG generates numbers closer to -1 and 1. This is exactly the
behavior we see in vanilla Minecraft. For example, a dropper dispenses items into
random directions, but from time to time, there will be one or a few items that
travels further than the rest. This is due to Minecraft's RNG picking
numbers from a triangle distribution; it mimics a normal distribution (bell
curve) where values further from the center are highly unlikely to happen, but
will happen eventually given enough time.

This is the reason why insane behaviors is useful to a lot of technical
players. Instead of testing/waiting for a really long time to catch highly
unlikely events, this carpet extension allows players to catch those events
much faster.

Uniform Distribution

Uniform Distribution

All numbers are equally likely to be picked inside of this distribution. This
is useful when testing a design for a long period of time. Uniform distribution
will most likely catch all edge cases when given enough time.

Bimodal Distribution

Bimodal Distribution

This distribution is the complete opposite of triangle distribution, where all
the unlikely events from the triangle distribution are likely to happen in
the bimodal distribution. This is useful to test only the very rare edge cases.

The extremeness of this distribution can be configured using /carpet ibBimodalExtremeness <value>. value can be a number between 0 and 1, but
can't be exactly 1. 0 means uniform distribution and values closer to 1
means "very extreme edges." The default extremeness value is 0.5.

Trimodal Distribution

Trimodal Distribution

This distribution is similar to bimodal, but values around -1, 0, and 1 are
more likely to happen instead of just values around -1 and 1. Bimodal
distribution is not great at covering axis-aligned extremes. For example, when
an item is dispensed from a dropper, it will pick a random velocity vector in
the X and Z axes. Bimodal can only increase the probability of both X and Z to
an extreme, it cannot increase only one axis at a time. This means, in this
case, if bimodal has a high extreme value, it's only useful for testing items
being dispensed diagonally, which can miss some edge cases that happen when
items travel parallel to the world axes.

The extremeness of this distribution can be configured using /carpet ibTrimodalExtremeness <value>. value can be a number between 0 and 1, but
can't be 1. 0 means uniform distribution and values closer to 1 means "very
extreme edges and center." The default extremeness value is 0.5. Note that
this value does not change the distribution as much as the bimodal extremeness
value to its distribution.

Discrete Distribution

Discrete Distribution

Unlike the other distributions, discrete distribution is not continuous. It
picks number randomly based on a pre-determined set of possible numbers. This
set of numbers can be configured using /carpet ibDiscreteCuts <value>. It's
better to show the pattern than explaining how discrete random numbers are
generated in IBCarpet.

Here's the pattern:

  • Cut = 0, possible numbers are [0, 1]
  • Cut = 1, possible numbers are [0, 0.5, 1]
  • Cut = 2, possible numbers are [0, 0.333..., 0.666..., 1]
  • Cut = 3, possible numbers are [0, 0.25, 0.5, 0.75, 1]

The possible numbers are like evenly slicing up a cake. The space between each
cut becomes thinner as the number of cuts increases. A value is picked from
this set of possible numbers as the generated number. As the number of cuts
approaches infinity, the distribution becomes uniform.

Discrete distribution is useful to test most of the possible edge cases very
quickly. Since it has a limited amount of possible numbers, it's very easy to
generate extreme values. Please do remember that discrete distribution can help
players to quickly generate many important and unique extreme values, but it
does not cover all possibilities.

Unlike other distributions, this one has a range of [-1, 1] (inclusive)
instead of (-1, 1) (exclusive).

The default number of cuts is 4. Discrete distribution supersedes the
systematic method of generating random numbers used in the original JoaCarpet
extension.

Differences between JoaCarpet

JoaCarpet generates random number similar to the discrete distribution. However,
two main differences are that discrete distribution is independent (previous
generation does not affect the current generation) and JoaCarpet is not
memoryless (has a counter that remembers how many times random has been
called). JoaCarpet's approach is to start off with the most extreme numbers: 0
and 1. When the counter reaches 1, it resets, and automatically increase the
number of cuts so that the next iteration will loop through 0, 0.5, and 1. One
major issue with this approach is that it requires manual user input to reset
the counter and the counter are shared between all item entity randomlization
events. If you have multiple droppers doing the same thing, some of the
droppers might never hit the edge cases. After leaving JoaCarpet insane
behavior running for hours, you can encounter dropper basically dispensing
items at the same location. This is because the "cuts" value is getting way too
big so the increment step between each item dispense is almost 0.

Project description from Modrinth.

Pick your setup

IBCarpet by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

4 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

IBCarpet versions and loaders

8 of 8 releases match

Looking for an older file? The official Modrinth project page is in Resources.