Compatibility
Minecraft: Java Edition
1.21.4
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Licensed GPL-3.0-or-later
Published 8 months ago
Updated 3 days ago
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()
inaddPassenger()
to a custom method which returnsisPlayer()
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 abstract class Entity {
public boolean hasCommandTag(String commandTag) {}
}
public class BossBarManager {
public CommandBossBar getOrAdd(Identifier id, Text displayName) {}
public boolean contains(Identifier id) {}
public void remove(Identifier id) {}
}
public final class ItemStack {
// From `modifiers` in `minecraft:custom_data`.
public NbtList getCustomModifiers() {}
// From `status_effects` in `minecraft:custom_data`.
public NbtList getCustomStatusEffects() {}
}
public abstract class PlayerEntity {
public ScoreHolder getScoreHolder() {}
}
public abstract class LivingEntity {
public ScoreHolder getScoreHolder() {}
public double getCustomModifiedValue(String attribute, double base) {}
// From equipped `ItemStack`s, filtered based on `attribute` field.
public NbtList getCustomModifiers(String attribute) {}
// From equipped `ItemStack`s.
public NbtList getCustomModifiers() {}
}
FAQ
Performence downside if only install the library?
Not at all. It just takes a few more milliseconds to start Minecraft. Because the purpose of this library is to provide util methods.