-
Notifications
You must be signed in to change notification settings - Fork 67
Type Specific Predicates
DaFuqs edited this page May 17, 2024
·
3 revisions
If you do know what that they already: props to you.
Type Specific Predicates are sub-predicates usable in entity predicates. Specifically, in the type_specific
sub node. They allow you to check for specific properties, that only exist for certain entity types, for example a foxes variant or a players level.
-
color
(string): The entities color. Omit the value to only match the base vanilla color
-
color
(string): The entities color -
sheared
(bool): Whether the entity is currently sheared -
hatless
(bool): Whether the entity has wool on it's head when grown
-
frill_variant
(id): The entities frill variant, likespectrum:simple
-
horn_variant
(id): The entities horn variant, likespectrum:horny
-
color
(string): The entities color
-
variant
(id): The entities variant, likespectrum:default
-
clipped
(bool): Whether the entity is clipped -
angry
(bool): Whether the entity is angry
Type specific predicates can be matched in any entity predicate.
Matching a type specific predicate, shown based on lightning_rod_with_villager_no_fire
advancement.
{
[...]
"criteria": {
"lightning_rod_with_villager_no_fire": {
"trigger": "minecraft:lightning_strike",
"conditions": {
"lightning": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type_specific": {
"type": "lightning",
"blocks_set_on_fire": 0
},
"distance": {
"absolute": {
"max": 30
}
[...]
}
General
For Players
- Getting Started
- Mixing Colors
- Stuck on how to progress?
- Main Progression Steps (MAJOR SPOILERS)
For Server Admins / Modpack Creators
- Integrating into Modpacks
- Adjusting Progression
- Advancement Criteria
- 1.7.x: Patchouli Pages
- 1.7.x: Patchouli Recipe Pages
- 1.8.x: Modonomicon Pages
- 1.8.x: Modonomicon Recipe Pages
- Commands
- Type Specific Predicates
- JsonNBT
For Map Makers
Recipe Types
- Custom Pigment Pedestal Recipes
- Custom Anvil Crushing Recipes
- Custom Fusion Shrine Recipes
- Custom Enchanter Recipes
- Custom Enchantment Upgrade Recipes
- Custom Potion Workshop Brewing Recipes
- Custom Potion Workshop Crafting Recipes
- Custom Potion Workshop Reagents
- Custom Spirit Instiller Recipes
- Custom Liquid Dipping Recipes
- Custom Ink Converting Recipes
- Custom Crystallarieum Recipes
- Custom Cinderhearth Recipes
- Custom Titration Barrel Recipes
- Fluid Ingredients
Loot Tables
More Customisation
- Adding Nature's Staff Conversions
- Adding Entity Fishing Entries
- Adding Resonance Drops
- Adding Crystal Apothecary Harvestables
- Adding Particle Spawner Particles
For Contributors