Scoreboard.villager constructor
Scoreboard.villager(
- String name, {
- TextComponent? display,
- bool addIntoLoad = true,
- bool removeOld = false,
The Scoreboard.click
constructor adds a carrot on a stick click event objective
Implementation
factory Scoreboard.villager(
String name, {
TextComponent? display,
bool addIntoLoad = true,
bool removeOld = false,
}) =>
Scoreboard(
name,
type: 'minecraft.custom:minecraft.talked_to_villager',
display: display,
addIntoLoad: addIntoLoad,
);