Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/postInit/minecraft.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ mods.minecraft.player.addStartingItem(item('minecraft:water_bucket'))
mods.minecraft.player.setStartingItems(true, item('minecraft:clay').withNbt([display:[Name:'Hotbar']]), null, null, null, null, null, null, null, null, item('minecraft:clay').withNbt([display:[Name:'Top row of inventory']]), null, null, null, null, null, null, null, null, item('minecraft:clay').withNbt([display:[Name:'Middle row of inventory']]), null, null, null, null, null, null, null, null, item('minecraft:clay').withNbt([display:[Name:'Bottom row of inventory']]), null, null, null, null, null, null, null, null, item('minecraft:diamond_boots'), item('minecraft:diamond_leggings'), item('minecraft:diamond_chestplate'), item('minecraft:diamond_helmet'), item('minecraft:clay').withNbt([display:[Name:'Offhand']]))

mods.minecraft.player.setReplaceDefaultInventory(true)
mods.minecraft.player.setTestStartingItems(true)
// mods.minecraft.player.setTestStartingItems(true)

// Rarity:
// Control the rarity of the item, which typically is the name color, to any standard Rarity or any TextFormatting code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void setStartingItems(boolean isSlotSpecific, List<ItemStack> items) {
}
}

@MethodDescription(type = MethodDescription.Type.VALUE, example = @Example("true"))
@MethodDescription(type = MethodDescription.Type.VALUE, example = @Example(value = "true", commented = true))
public void setTestStartingItems(boolean value) {
testingStartingItems = value;
}
Expand Down