Skip to content
Open
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 SpongeAPI
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public static void register(final DataProviderRegistrator registrator) {
Keys.HIDE_CAN_PLACE, DataComponents.CAN_PLACE_ON,
Keys.HIDE_STORED_ENCHANTMENTS, DataComponents.STORED_ENCHANTMENTS,
Keys.HIDE_UNBREAKABLE, DataComponents.UNBREAKABLE,
Keys.HIDE_MISCELLANEOUS, DataComponents.CUSTOM_DATA
Keys.HIDE_MISCELLANEOUS, DataComponents.CUSTOM_DATA,
Keys.HIDE_POTION_EFFECTS, DataComponents.POTION_CONTENTS,
Keys.HIDE_ARMOR_TRIM, DataComponents.TRIM
);

final var mutableItem = registrator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ private CommandResult items(final CommandContext commandContext) {
stack4.offer(Keys.CUSTOM_NAME, Component.text("Teleport on death"));
stack4.offerSingle(Keys.DEATH_PROTECTION_ACTIONS, ItemAction.teleportRandomly(20));

player.inventory().offer(stack1, stack2, stack3, stack4);
final ItemStack stack5 = ItemStack.of(ItemTypes.POTION);
stack5.offer(Keys.CUSTOM_NAME, Component.text("Hide potion effects"));
stack5.offer(Keys.HIDE_POTION_EFFECTS, true);

player.inventory().offer(stack1, stack2, stack3, stack4, stack5);
return CommandResult.success();
}

Expand Down