It would work like editing a setComponentGroup but for components, componets groups and general components both items, blocks and entities
exemples:
Entities
const entityComponents = entity.editComponents([
new DefinitionComponent("minecraft:collision_box", {height: 1, width: 1})
])
Items
const itemComponents = item.editComponents([
new DefinitionComponent("minecraft:icon", {texture: "Texture Name"})
])
Blocks
const blockComponents = block.editComponents([
new DefinitionComponent("minecraft:geometry", "geometry.name")
])
Please sign in to leave a comment.
0 Comments