-
Notifications
You must be signed in to change notification settings - Fork 1
[Version 4.10] NBT
Insane96 edited this page May 25, 2024
·
2 revisions
Lets you set dynamically a mob nbt by specifying the nbt tag, the type and the value.
-
nbt_tag
: The name of the NBT tag. Currently nested tags are not supported -
type
: The value type of the nbt tag
"double" and "integer" represent a decimal number and an integer number
"boolean" represent a true/false value -
value
: (Range Object) represents the value to set in the nbt tag (in case of "double" and "integer"). Instead for a "boolean" value this represents the chance (0~1) for the result to be true. -
persistent_data
: A true/false value that represents if the NBT tag set is inside the "ForgeData" tag -
conditions
: (Conditions Object)
- Insane lib adds a new
ForgeData
taginsanelib:explosion_causes_fire
so mobs that cause explosions can also cause fire.
You can set add a random absorption amount to a mob
{
"target": "minecraft:zombie",
"set_nbt": [
{
"nbt_tag": "AbsorptionAmount",
"type": "double",
"value": {
"min": 10,
"max": 20
}
}
]
}
You can also set mods' data like EnhancedAI.
This makes a zombie have 70% chance to spawn with the ability to break blocks.
{
"target": "minecraft:zombie",
"set_nbt": [
{
"nbt_tag": "enhancedai:miner",
"type": "boolean",
"value": 0.7,
"persistent_data": true
}
]
}