2. Vision Properties - lixxir/VMinus GitHub Wiki
About
Vision properties are simply defined as any property in a Vision File that modifies a property of the feature. E.g. max_damage, has_glint, max_stack_size, etc.
Item Properties
Integer Properties
max_damage
Defines the max damage of an item. Value cannot go below 0.
{
"items": [
"#minecraft:tools",
"minecraft:bow"
],
"max_damage": 512
}
Makes the max_damage of everything in the tools tag as well as the bow have 512 max damage.
max_stack_size
Defines the max stack size of an item. Value cannot go below 1 or greater than 64.
{
"item": "minecraft:end_crystal",
"max_stack_size": 16
}
Makes the max stack size of end crystals 16.
enchantability
Defines how high quality the enchantments are when enchanting, golden equipment has a value of 25, leather 15, iron 9, and diamond 10. Value cannot go below 0.
{
"tag": "vminus:armor/diamond",
"enchantability": 40
}
Makes all diamond armor have an enchantment value of around 40 (super easy to enchant.)
use_duration
Defines the use time in ticks of a usable item. Value cannot go below 0.
{
"item": "minecraft:apple",
"use_duration": 16
}
Makes the apple twice as quick to eat.
fuel_time
Defines the fuel time in ticks of an item. Value cannot go below 0.
{
"item": "minecraft:dirt",
"fuel_time": 60
}
Makes dirt usable as 3 second fuel in furnaces.
Boolean Properties
fire_resistant
Defines whether the item burns in lava or fire (like netherite.)
{
"item": "all",
"fire_resistant": true
}
Makes all items not burn in lava or fire.
can_equip
Defines whether the item can be worn or not. If the item was not originally wearable, you'll need to use the equipment_slot property to make wearable in a specific slot.
{
"item": "minecraft:elytra",
"can_equip": false
}
Makes the elytra not wearable.
damageable
Defines whether the item has durability or not.
{
"item": "minecraft:trident",
"damageable": false
}
Makes the trident not damageable.
enchantable
Defines whether the item is enchantable or not.
{
"item": "minecraft:crossbow",
"enchantable": false
}
Makes the crossbow not enchantable.
has_glint
Defines whether the item has the enchantment glint or not.
{
"item": "minecraft:crossbow",
"has_glint": false
}
Makes the crossbow not enchantable.
ban
If true, attempts to prevent the item from existing in-game.
{
"item": "minecraft:clay_ball",
"ban": true
}
Prevents the clay ball from existing.
Misc. Properties
replace
Attempts to replace the item in-game with the defined value.
{
"item": "minecraft:prismarine_crystals"
"replace": "minecraft:prismarine_shard"
}
Replaces prismarine crystals with prismarine shards in-game.
rarity
Defines the rarity of the item.
Accepted values:
- common
- uncommon
- rare
- epic
- legendary
- inverted
- unobtainable
- delicacy
{
"item": "minecraft:cooked_porkchop"
"rarity": "epic"
}
Makes the cooked_porkchop epic rarity.
use_animation
Defines the use animation of an item.
Accepted values:
- none
- eat
- drink
- block
- bow
- spear
- crossbow
- spyglass
- toot_horn
- brush
{
"item": "minecraft:bow"
"use_animation": "brush"
}
Makes the bow use the brush animation.
equipment_slot
Defines the equipment slot of an item.
Accepted values:
- mainhand
- offhand
- feet
- legs
- chest
- head
{
"item": "minecraft:glass"
"equipment_slot": "head"
}
Makes glass blocks wearable on the head.
Block Properties
Integer Properties
light_level
Defines the light level of the block. Value must be within 0 to 15.
{
"block": "minecraft:oak_planks",
"light_level": 10
}
Makes oak planks glow with a light level of 10
Decimal Properties
speed_factor
Defines a factor applied to how fast you move when standing on the block.
{
"block": "minecraft:obsidian",
"speed_factor": 1.5
}
Makes you walk faster on obsidian.
jump_factor
Defines a factor applied to how high you jump when standing on the block.
{
"block": "minecraft:slime_block",
"jump_factor": 3
}
Makes you jump higher on slime blocks.
friction
Defines the friction applied to movement when standing on the block.
{
"block": "minecraft:glass",
"friction": 1.5
}
Makes glass slippery.
explosion_resistance
Defines the how well the block resists against explosions. Value must be greater than 0
{
"block": "minecraft:dirt",
"explosion_resistance": 25.5
}
Makes dirt very resistant to explosions.
destroy_time
Defines the how long the block takes to destroy
{
"block": "minecraft:obsidian",
"destroy_time": 0.3
}
Makes obsidian break very quick.
Boolean Properties
emissive
Defines whether a block glows like magma blocks do.
{
"block": "minecraft:birch_planks",
"emissive": true
}
Makes birch planks glow like magma blocks.
occludes
Defines whether a block occludes light or not.
{
"block": "minecraft:cobblestone",
"occludes": false
}
Makes cobblestone not occlude light.
redstone_conductor
Defines whether a block acts as a redstone conductor (like glass).
{
"block": "minecraft:iron_block",
"redstone_conductor": true
}
Makes iron blocks conduct redstone.