Pig - 1.13.0.34

<< back to entity list

Last Updated

The Pig entity last updated in Minecraft Version old
View Entity Version History >>

What's Changed:

Changes since stable release 1.12.0.28


      • New Value:
        "minecraft:experience_reward": {
            "on_bred": "Math.Random(1,7)",
            "on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
        }
      • New Value:
        "minecraft:interact": {
            "interactions": [
                {
                 "on_interact": {
                    "filters": {
                        "test": "has_equipment",
                        "subject": "other",
                        "domain": "hand",
                        "value": "saddle"
                    },
                    "event": "minecraft:on_saddled"
                 },
                 "use_item": true,
                 "play_sounds": "saddle",
                 "interact_text": "action.interact.saddle"
                }
            ]
        }
        Previous Value:
        "minecraft:interact": [
            {
                "on_interact": {
                 "filters": {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "value": "saddle"
                 },
                 "event": "minecraft:on_saddled"
                },
                "use_item": true,
                "play_sounds": "saddle",
                "interact_text": "action.interact.saddle"
            }
        ]
      • New Value:
        "format_version": "1.13.0"
        Previous Value:
        "format_version": "1.8.0"
      • New Value:
        "minecraft:breathable": {
            "total_supply": 15,
            "suffocate_time": 0
        }
        Previous Value:
        "minecraft:breathable": {
            "totalSupply": 15,
            "suffocateTime": 0
        }
      • New Value:
        "minecraft:damage_sensor": {
            "triggers": {
                "on_damage": {
                 "filters": {
                    "test": "is_family",
                    "subject": "other",
                    "value": "lightning"
                 },
                 "event": "become_zombie"
                },
                "deals_damage": false
            }
        }
        Previous Value:
        "minecraft:damage_sensor": {
            "on_damage": {
                "filters": {
                 "test": "is_family",
                 "subject": "other",
                 "value": "lightning"
                },
                "event": "become_zombie"
            },
            "deals_damage": false
        }
      • New Value:
        "minecraft:hurt_on_condition": {
            "damage_conditions": [
                {
                 "filters": {
                    "test": "in_lava",
                    "subject": "self",
                    "operator": "==",
                    "value": true
                 },
                 "cause": "lava",
                 "damage_per_tick": 4
                }
            ]
        }
      • New Value:
        "minecraft:pushable": {
            "is_pushable": true,
            "is_pushable_by_piston": true
        }
      • New Value:
        "minecraft:type_family": {
            "family": [
                "pig",
                "mob"
            ]
        }
        Previous Value:
        "minecraft:type_family": {
            "family": [
                "pig"
            ]
        }
      • New Value:
        "minecraft:ageable": {
            "duration": 1200,
            "feed_items": [
                "carrot",
                "beetroot",
                "potato"
            ],
            "grow_up": {
                "event": "minecraft:ageable_grow_up",
                "target": "self"
            }
        }
        Previous Value:
        "minecraft:ageable": {
            "duration": 1200,
            "feedItems": [
                "carrot",
                "beetroot",
                "potato"
            ],
            "grow_up": {
                "event": "minecraft:ageable_grow_up",
                "target": "self"
            }
        }
      • New Value:
        "minecraft:boostable": {
            "speed_multiplier": 2,
            "duration": 3,
            "boost_items": [
                {
                 "item": "carrotOnAStick",
                 "damage": 2,
                 "replace_item": "fishing_rod"
                }
            ]
        }
        Previous Value:
        "minecraft:boostable": {
            "speed_multiplier": 2,
            "duration": 3,
            "boost_items": [
                {
                 "item": "carrotOnAStick",
                 "item_damage": 2,
                 "replaceItem": "fishing_rod"
                }
            ]
        }
      • New Value:
        "minecraft:breedable": {
            "require_tame": false,
            "breeds_with": {
                "mate_type": "minecraft:pig",
                "baby_type": "minecraft:pig",
                "breed_event": {
                 "event": "minecraft:entity_born",
                 "target": "baby"
                }
            },
            "breed_items": [
                "carrot",
                "beetroot",
                "potato"
            ]
        }
        Previous Value:
        "minecraft:breedable": {
            "requireTame": false,
            "breedsWith": {
                "mateType": "minecraft:pig",
                "babyType": "minecraft:pig",
                "breed_event": {
                 "event": "minecraft:entity_born",
                 "target": "baby"
                }
            },
            "breedItems": [
                "carrot",
                "beetroot",
                "potato"
            ]
        }


Statistics:

Health

[10]

Loot / Barter Loot / Additional Drops
  • Porkchop
  • Saddle
    Breedable
    • Pig Adult: Beetroot, Carrot, Potato
    Can be Ridden by Mobs
    • Pig Unsaddled: Zombie
    Families
    • Default: Mob, Pig
    Movement Speed
    • Default: 0.25
    Other Attributes
    • Can be Renamed
    • Can be Ridden by Player > Pig Saddled
    • Can Climb
    • Can Jump
    • Has Collisions
    • Has Gravity
    • Leashable
    • Pushable
    • Pushable by Pistons

    Associated Files:

    Behavior File
    • behavior_packs/vanilla/entities/pig.json
    Animations
    • resource_packs/vanilla/animations/look_at_target.animation.json
    • resource_packs/vanilla/animations/pig.animation.json
    • resource_packs/vanilla/animations/quadruped.animation.json
    Entity
    • resource_packs/vanilla/entity/pig.entity.json
    Geometry
    • resource_packs/vanilla/models/entity/pig.geo.json
    Loot Tables
    • behavior_packs/vanilla/loot_tables/entities/pig.json
    • behavior_packs/vanilla/loot_tables/entities/pig_saddled.json
    Render Controllers
    • resource_packs/vanilla/render_controllers/pig.render_controllers.json
    Sounds
    • resource_packs/vanilla/sounds/mob/pig/boost1.fsb
    • resource_packs/vanilla/sounds/mob/pig/boost2.fsb
    • resource_packs/vanilla/sounds/mob/pig/boost3.fsb
    • resource_packs/vanilla/sounds/mob/pig/boost4long.fsb
    • resource_packs/vanilla/sounds/mob/pig/boost5long.fsb
    • resource_packs/vanilla/sounds/mob/pig/death.fsb
    • resource_packs/vanilla/sounds/mob/pig/say1.fsb
    • resource_packs/vanilla/sounds/mob/pig/say2.fsb
    • resource_packs/vanilla/sounds/mob/pig/say3.fsb
    • resource_packs/vanilla/sounds/mob/pig/step1.fsb
    • resource_packs/vanilla/sounds/mob/pig/step2.fsb
    • resource_packs/vanilla/sounds/mob/pig/step3.fsb
    • resource_packs/vanilla/sounds/mob/pig/step4.fsb
    • resource_packs/vanilla/sounds/mob/pig/step5.fsb
    Spawn Rules
    • behavior_packs/vanilla/spawn_rules/pig.json
    Textures
    • resource_packs/vanilla/textures/entity/pig/pig.png
    • resource_packs/vanilla/textures/entity/pig/pig_saddle.png

    Material Info:

    Material: Pig
    {
        "vertexShader": "shaders/entity.vertex",
        "vrGeometryShader": "shaders/entity.geometry",
        "fragmentShader": "shaders/entity.fragment",
        "vertexFields": [
            {
                "field": "Position"
            },
            {
                "field": "Normal"
            },
            {
                "field": "UV0"
            }
        ],
        "variants": [
            {
                "skinning": {
                    "+defines": [
                        "USE_SKINNING"
                    ],
                    "vertexFields": [
                        {
                            "field": "Position"
                        },
                        {
                            "field": "BoneId0"
                        },
                        {
                            "field": "Normal"
                        },
                        {
                            "field": "UV0"
                        }
                    ]
                }
            },
            {
                "skinning_color": {
                    "+defines": [
                        "USE_SKINNING",
                        "USE_OVERLAY"
                    ],
                    "+states": [
                        "Blending"
                    ],
                    "vertexFields": [
                        {
                            "field": "Position"
                        },
                        {
                            "field": "BoneId0"
                        },
                        {
                            "field": "Color"
                        },
                        {
                            "field": "Normal"
                        },
                        {
                            "field": "UV0"
                        }
                    ]
                }
            }
        ],
        "msaaSupport": [
            "Both"
        ],
        "+samplerStates": {
            "samplerIndex": 0,
            "textureFilter": "Point"
        },
        "+defines": [
            "USE_OVERLAY"
        ]
    }