▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/CarpetTNGAddtion
CarpetTNGAddtion

CarpetTNGAddtion

Carpet addon for Minecraft 1.21.4,add features about dispenser planting, trial cooldown, ominous potion. All rules default off, /carpet toggles.

Оцените первым
63
0
Все версии→CarpetTNGAddtion 1.1.0alpha

CarpetTNGAddtion 1.1.0alpha

Alpha08.09.2026

Список изменений

v1.1.0

This version introduces MixinExtras (bundled with Fabric Loader 0.19.3, no extra dependency required), and refactors all the standard Mixin injection code in the project into the cleaner, more maintainable @WrapOperation / @WrapMethod style, with behavior fully equivalent to the original implementation.

Mixin Refactor Overview

  • @Redirect → @WrapOperation (12)
  • @ModifyArg → @WrapOperation (3)
  • @Inject (HEAD cancel / RETURN return-value modification) → @WrapMethod (14)
  • @Inject (additional logic / complex injections) kept as-is (21)

Changed Mixins

@WrapMethod (14)

MixinInjected methodFeature
creeper.CreeperMixinServerExplosion.interactWithBlocksStop creeper explosions from destroying blocks
creeper.GhastMixinServerExplosion.interactWithBlocksStop ghast fireball explosions from destroying blocks
creeper.EndCrystalExplosionMixinServerExplosion.interactWithBlocksStop end crystal explosions from destroying blocks
vex.VexMixinVex.tickVexes die immediately when their evoker dies
villager.VillagerMixinVillager.startSleepingVillager bed explodes in the nether/end
apple.ApplyStatusEffectsConsumeEffectMixinApplyStatusEffectsConsumeEffect.applyLegacy enchanted golden apple Regeneration V
trialspawner.TrialSpawnerMixinTrialSpawner.getTargetCooldownLengthTrial spawner cooldown 5 minutes
enchantment.EnchantmentMixinEnchantment.areCompatibleStackable protection enchantments
obsidian.WitherBossMixinWitherBoss.canDestroyReinforced obsidian (immune to wither breaking)
potion.BrewingStandMenuMixinBrewingStandMenu$PotionSlot.mayPlaceItemAllow ominous bottle in brewing stand GUI
potion.BrewingStandMixinBrewingStandBlockEntity.isBrewableOminous potion brewable check
potion.PotionBrewingMixinPotionBrewing.isIngredientTotem of undying as brewing ingredient
reinforceddeepslate.ReinforcedDeepslatePlayerMixinPlayer.hasCorrectToolForDropsReinforced deepslate only minable by diamond/netherite pickaxe
reinforceddeepslate.ReinforcedDeepslateBlockStateMixinBlockBehaviour$BlockStateBase.getDestroySpeedReinforced deepslate mining time = obsidian

@WrapOperation (15, AnvilMenuMixin contains 2)

MixinInjected callFeature
anvil.AnvilMenuMixinDataSlot.get() / RandomSource.nextFloat() (lambda method_24922)Remove anvil too expensive / durable anvil
anvil.FallingBlockEntityMixinRandomSource.nextFloat()Durable falling anvil
enchantment.GrindstoneMenuMixinHolder.is(TagKey) (lambda method_58073)Grindstone removes curses
endcrystal.EndCrystalItemMixinBlockState.is(Block)End crystal placement restriction
enderdragon.EnderDragonMixinEndDragonFight.hasPreviouslyKilledDragon()Constant high ender dragon XP
enderman.EnderManMixinBlockState.is(TagKey)Enderman no take blocks blacklist
farmland.FarmBlockMixinFarmBlock.turnToDirt(...)Feather falling protects farmland
itemneverdespawn.ItemEntityMixinItemEntity.discard()Items never despawn
piglin.PiglinAiMixinBrain.setMemoryWithExpiry(...)Custom piglin trade disabled time
slime.SlimeMixinRandomSource.nextInt(I)Looting slime split
snowgolem.SnowGolemMixinSnowGolem.hurtServer(...)Snow golem no melt
tadpole.TadpoleMixinTadpole.convertTo(...) AfterConversionTadpole dye color
villager.VillagerLightningMixinVillager.convertTo(...)Villager lightning no witch
weakvindicator.MobMixinEntity.hurtServer(...)Weak vindicator (damage locked to 1)

New Features (added earlier in this version)

  • dispenserIronGolemRepair: Dispensers repair iron golems with iron ingots
  • collectableReinforcedDeepslate: Collectable reinforced deepslate
  • itemNeverDespawn: Items never despawn
  • weakVindicator: Weak vindicator (attack damage locked to 1)

Dependencies

  • No new external dependencies (MixinExtras is bundled with Fabric Loader 0.19.3)

v1.1.0

本版本引入 MixinExtras(Fabric Loader 0.19.3 内置,无需额外依赖),并将项目内全部基于标准 Mixin 注入的代码重构为更清晰、更易维护的 @WrapOperation / @WrapMethod 写法,行为与原实现完全等价。

Mixin 重构总览

  • @Redirect → @WrapOperation(12 处)
  • @ModifyArg → @WrapOperation(3 处)
  • @Inject(HEAD cancel / RETURN 改返回值)→ @WrapMethod(14 处)
  • @Inject(附加逻辑 / 复杂注入)保留原样(21 处)

更改过的 Mixin 清单

@WrapMethod(14 个)

Mixin注入方法功能
creeper.CreeperMixinServerExplosion.interactWithBlocks阻止苦力怕爆炸破坏方块
creeper.GhastMixinServerExplosion.interactWithBlocks阻止恶魂火球爆炸破坏方块
creeper.EndCrystalExplosionMixinServerExplosion.interactWithBlocks阻止末地水晶爆炸破坏方块
vex.VexMixinVex.tick唤魔者死亡后恼鬼立即死亡
villager.VillagerMixinVillager.startSleeping村民在下界/末地睡床爆炸
apple.ApplyStatusEffectsConsumeEffectMixinApplyStatusEffectsConsumeEffect.apply旧版附魔金苹果再生 V
trialspawner.TrialSpawnerMixinTrialSpawner.getTargetCooldownLength试炼刷怪笼冷却 5 分钟
enchantment.EnchantmentMixinEnchantment.areCompatible保护魔咒可叠加
obsidian.WitherBossMixinWitherBoss.canDestroy坚固黑曜石(免疫凋零破坏)
potion.BrewingStandMenuMixinBrewingStandMenu$PotionSlot.mayPlaceItem酿造台 GUI 放行不祥之瓶
potion.BrewingStandMixinBrewingStandBlockEntity.isBrewable灾厄药水可酿造判定
potion.PotionBrewingMixinPotionBrewing.isIngredient不死图腾可作酿造材料
reinforceddeepslate.ReinforcedDeepslatePlayerMixinPlayer.hasCorrectToolForDrops强化深板岩仅钻石/下界合金镐可挖
reinforceddeepslate.ReinforcedDeepslateBlockStateMixinBlockBehaviour$BlockStateBase.getDestroySpeed强化深板岩挖掘时间 = 黑曜石

@WrapOperation(15 处,其中 AnvilMenuMixin 含 2 处)

Mixin注入调用功能
anvil.AnvilMenuMixinDataSlot.get() / RandomSource.nextFloat()(lambda method_24922)移除铁砧过于昂贵 / 耐用的铁砧
anvil.FallingBlockEntityMixinRandomSource.nextFloat()耐摔的铁砧
enchantment.GrindstoneMenuMixinHolder.is(TagKey)(lambda method_58073)砂轮移除诅咒
endcrystal.EndCrystalItemMixinBlockState.is(Block)末地水晶放置限制
enderdragon.EnderDragonMixinEndDragonFight.hasPreviouslyKilledDragon()持续高经验打龙
enderman.EnderManMixinBlockState.is(TagKey)末影人禁止搬方块黑名单
farmland.FarmBlockMixinFarmBlock.turnToDirt(...)摔落缓冲保护耕地
itemneverdespawn.ItemEntityMixinItemEntity.discard()掉落物永不消失
piglin.PiglinAiMixinBrain.setMemoryWithExpiry(...)自定义猪灵受击拒绝交易时间
slime.SlimeMixinRandomSource.nextInt(I)抢夺史莱姆分裂
snowgolem.SnowGolemMixinSnowGolem.hurtServer(...)雪傀儡不融化
tadpole.TadpoleMixinTadpole.convertTo(...) AfterConversion蝌蚪喂染料定色
villager.VillagerLightningMixinVillager.convertTo(...)村民雷击不变女巫
weakvindicator.MobMixinEntity.hurtServer(...)弱化卫道士(伤害锁定 1)

新增功能(本版本内此前加入)

  • dispenserIronGolemRepair:发射器用铁锭修复铁傀儡
  • collectableReinforcedDeepslate:可获取的强化深板岩
  • itemNeverDespawn:掉落物永不消失
  • weakVindicator:弱化卫道士(攻击伤害锁定为 1)

依赖

  • 无新增外部依赖(MixinExtras 由 Fabric Loader 0.19.3 内置)

Файлы

carpettngaddtion-1.1.0alpha.jar(256.28 KiB)
Основной
Скачать

Метаданные

Канал релиза

Alpha

Номер версии

1.1.0alpha

Загрузчики

Fabric

Версии игры

1.21.4

Загрузок

24

Дата публикации

08.09.2026

Загрузил

ID версии

Главная