Skip to content

CandleCakeComponent

Parameters

NameTypeDefaultDescription
candleItemStringminecraft:candle
cakeBlockStringnubecraft:cake
stateNameStringmorefood:lit
sliceNameStringmorefood:slice

Methods

onPlayerInteract

setLit

eat

hasLightable

Example

js
new CandleCakeComponent("minecraft:candle", "minecraft:cake", "lit", "slice");

Not associated with or approved by Mojang Studios or Microsoft