Sulfur Cube Archetypes
Sulfur cube archetypes are data-driven JSON files that control the attribute modifiers, buoyancy, contact damage, explosion, knockback, and valid item contents of a sulfur cube. Each archetype is referenced by its file name and can be assigned to sulfur cube entities to change their behavior.
File Structure
Creating an Archetype
Use sulfurCubeArchetype on your DataPack. Pass an ItemTagArgument describing which items the sulfur cube can hold and the knockback it deals via horizontalKnockbackPower/verticalKnockbackPower, then add attribute modifiers with modifier, contact damage with contactDamage, and an explosion with explosion:
SulfurCubeArchetype Fields
Field
Type
Description
attributeModifiers
MutableList<SulfurCubeArchetypeAttributeModifier>
Attribute modifiers applied while the archetype is active.
buoyant
Boolean
Whether the sulfur cube floats on liquids.
contactDamage
SulfurCubeArchetypeContactDamage?
Damage dealt to entities that touch the sulfur cube, omitted when null.
explosion
SulfurCubeArchetypeExplosion?
The explosion triggered by the sulfur cube, omitted when null.
items
ItemTagArgument
Item tag defining which items the sulfur cube can hold. Required.
knockbackModifiers
SulfurCubeArchetypeKnockbackModifiers
Knockback dealt to entities that touch the sulfur cube. Required.
soundSettings
SulfurCubeArchetypeSoundSettings?
Archetype-specific hit and push sounds, omitted when null.
SulfurCubeArchetypeAttributeModifier Fields
Field
Type
Description
amount
Double
The amount applied by the modifier.
attribute
AttributeArgument
The attribute being modified.
id
String
The identifier of the modifier.
operation
AttributeModifierOperation
How amount is combined with the attribute's base value.
Field
Type
Description
amount
Float
The amount of damage dealt.
attributeToSource
Boolean
Whether the damage is attributed to the sulfur cube as its source.
damageType
DamageTypeArgument
The type of damage dealt.
SulfurCubeArchetypeExplosion Fields
Field
Type
Description
causesFire
Boolean
Whether the explosion sets blocks on fire.
fuse
Int
The delay, in ticks, before the explosion goes off.
power
Int
The explosion's power.
SulfurCubeArchetypeKnockbackModifiers Fields
Field
Type
Description
horizontalPower
Float
The horizontal knockback power.
verticalPower
Float
The vertical knockback power.
SulfurCubeArchetypeSoundSettings Fields
Field
Type
Description
hitSound
SoundEventArgument
The sound played when the sulfur cube is hit.
pushSound
SoundEventArgument
The sound played when the sulfur cube pushes an entity.
pushSoundCooldown
Float
The delay, in ticks, before pushSound can play again.
pushSoundImpulseThreshold
Float
The minimum push impulse required for pushSound to play.
See Also
External Resources