Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Remove peanut butter container item
Browse files Browse the repository at this point in the history
  • Loading branch information
egelja committed Jul 12, 2021
1 parent 9c48672 commit 977c268
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,9 @@ onEvent("item.registry", (event) => {
event
.create("peanut_butter")
.displayName("Peanut Butter")
.containerItem("minecraft:glass_bottle")
.group("food")
.food((foodBuilder) => {
foodBuilder
.hunger(1)
.saturation(0.0)
.eaten((event) => {
if (!event.getPlayer().isCreativeMode()) {
event.getServer().scheduleInTicks(1, event.getPlayer(), (callback) => {
callback.data.giveInHand(Item.of("minecraft:glass_bottle"));
});
}
});
foodBuilder.hunger(1).saturation(0.0);
});
// Jelly
event
Expand Down

0 comments on commit 977c268

Please sign in to comment.