👟 Resistencia del suelo y protección contra pisoteo
En Minecraft vanilla, los cultivos son frágiles como el cristal: un salto destruye la tierra arada. Agrarian Reform implementa resistencia del suelo, tratando la tierra como un recurso cuidado con física realista.
📊 Infobox de mecánicas de suelo
| Property | Specification |
|---|---|
| Mixin Handler | net.instantgratification.agrarianreform.mixin.FarmlandBlockMixin |
| Logic Helper | net.instantgratification.agrarianreform.util.GrowthHelper |
| Soft Step Tags | #agrarian_reform:soft_step_boots, #c:boots/soft, minecraft:leather_boots |
| Encantamiento Soft Step | Caída de pluma (minecraft:feather_falling) en botas |
| Fall Distance Limit | $\le 0.6\text{ meters}$ |
| Filtro de entidades | agrarian_reform:trample_immunity_players_only (Predeterminado: false) |
| Inmunidad total | agrarian_reform:total_trample_immunity (Predeterminado: false) |
👟 Reglas de protección de paso suave
ENTITY FALLS / STEPS ON FARMLAND
│
▼
Is totalTrampleImmunity GameRule true?
┌────┴────┐
YES│ │NO
▼ ▼
Is trampleImmunityPlayersOnly true? Bare-foot Fast-Fail Check
┌────┴────┐ (Feet slot empty -> skip enchant lookup)
YES│ │NO │
▼ ▼ ▼
Is Player / Tamed? Cancel Trample Does entity have Soft Step?
┌────────┴────────┐(Farmland Safe) (#soft_step_boots or Feather Falling)
YES│ │NO ┌───────┴───────┐
▼ ▼ YES│ │NO
Cancel Trample Normal Trample Logic ▼ ▼
(Farmland Safe) (Checks Soft Step/Fall) Cancel Trample Did fall distance
(Farmland Safe) exceed 0.6m limit?
┌───┴───┐
YES│ │NO
▼ ▼
Trample Cancel
Dirt! Trample1. Calzado protector y encantamientos
- Botas de cuero y etiquetadas: Llevar botas de cuero o con etiquetas
#agrarian_reform:soft_step_bootsotorga inmunidad al pisoteo al caminar, correr y saltar. - Caída de pluma: Cualquier nivel de Caída de pluma en las botas evita el daño a la tierra arada en movimiento ordinario.
- Descarte descalzo: Si no se llevan botas, se omite de inmediato la búsqueda de encantamientos en $0.0001\mu\text{s}$.
2. Velocidad y distancia de impacto
Caminar o correr por la tierra arada nunca dañará el suelo. Sin embargo, caer desde más de 0.6 metros sin protección activará el pisoteo.
3. Filtro para jugadores y mascotas
Cuando agrarian_reform:trample_immunity_players_only está activo con total_trample_immunity:
- Jugadores y mascotas domesticadas (lobos, gatos) tienen 100% de inmunidad.
- Criaturas hostiles y salvajes (zombis, esqueletos, aldeanos, saqueadores) siguen pisoteando los cultivos al caer.
⚙️ Comandos de GameRule
bash
# Habilitar inmunidad total al pisoteo para todas las entidades
/gamerule agrarian_reform:total_trample_immunity true
# Restringir la inmunidad estrictamente a jugadores y mascotas
/gamerule agrarian_reform:total_trample_immunity true
/gamerule agrarian_reform:trample_immunity_players_only trueSee also: Reglas de juego (GameRules), Estética y respuesta ambiental, and API e integración de addons.
