Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Candy Wrapper

Candy Wrapper

A library mod for CookedSeafood's mods.

2,040
3
Library

Compatibility

Minecraft: Java Edition

Platforms

Fabric

Supported environments

Server-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Join Discord server

Creators

CookedSeafood
CookedSeafood Owner

Details

Licensed GPL-3.0-or-later
Published last year
Updated last month
DescriptionChangelogVersions

Candy Wrapper

Candy Warpper is a library mod I use in many of my mods. You are free to use it in your mods.

Things made player riding possible:

  • Redirect isSaveable() in addPassenger() to a custom method which returns isPlayer() if not saveable.
  • Send EntityPassengersSetS2CPacket to the vehicle player when mounting or dismounting.

Other utils:

public class ItemEnchantmentsComponent {
    public int getLevel(String enchantment) {}
}
public class Scoreboard {
    public ScoreboardObjective getOrAddObjective(String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType, boolean displayAutoUpdate, @Nullable NumberFormat numberFormat) {}

    public Team getOrAddTeam(String name) {}
}
public abstract class Entity {
    public double getXDelta() {}

    public double getYDelta() {}

    public double getZDelta() {}

    public double getPosDelta() {}

    public double getYawDelta() {}

    public double getPitchDelta() {}

    // A shortcut of .getCommandTags().contains(commandTag)
    public boolean hasCommandTag(String commandTag) {}
}
public class BossBarManager {
    public CommandBossBar getOrAdd(Identifier id, Text displayName) {}

    public boolean containsKey(Identifier id) {}

    public void remove(Identifier id) {}
}
public abstract class BossBar {
    public static enum Color {
        public Formatting getFormat() {}
    }
}
public class NbtCompound {
    public Map<? extends String, ? extends NbtElement> getEntries() {}

    public Set<String> keySet() {}

    public void putAll(NbtCompound entries) {}
}
public class NbtComponent {
    public NbtComponent copyFrom(NbtComponent nbtComponent) {}
}
public final class ItemStack {
    public Identifier getId() {}

    // A shortcut of .getRegistryEntry().getIdAsString()
    public String getIdAsString() {}
}
public abstract class PlayerEntity {
    public ScoreHolder getScoreHolder() {}
}
public abstract class LivingEntity {
    public void setDead(boolean dead) {}

    public float getBodyYawDelta() {}

    public float getHeadYawDelta() {}

    public ScoreHolder getScoreHolder() {}
}
public abstract class BossBars {
    public abstract class Colors {
        public static String getName(Formatting format) {}

        public static Formatting getFormat(String name) {}

        public static BossBar.Color byName(String name) {}

        public static BossBar.Color byFormat(Formatting format) {}
    }

    public abstract class Styles {
        public static BossBar.Style byName(String name) {}
    }
}

FAQ

Performence downside if only install the library?

No. Except that it takes a few more milliseconds to start Minecraft.

Modrinth is open source.

main@396f737

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.