Skip to content

Commit

Permalink
radioactive bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Soumeh committed Dec 8, 2024
1 parent 76a9c9e commit a177c4b
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ public static void init() {}
public static final Item EXAMPLE_ITEM = register("example_item", ExampleItem::new,
new Item.Settings()
);

public static Item RADIOACTIVE_BUCKET = Registry.register(Registries.ITEM, Identifier.of("svbcr", "radioactive_bucket"),
new BucketItem(RADIOACTIVE_STILL, new Item.Settings().recipeRemainder(Items.BUCKET).maxCount(1)));

RegistryKey<Item> key = RegistryKey.of(RegistryKeys.ITEM, RADIOACTIVE_BUCKET);
public static Item RADIOACTIVE_BUCKET = register("radioactive_bucket",
settings -> new BucketItem(RADIOACTIVE_STILL, settings),
new Item.Settings().recipeRemainder(Items.BUCKET).maxCount(1)
);

public static Item register(String path, Function<Item.Settings, Item> function, Item.Settings settings) {
Identifier id = SVBCR.of(path);
Expand Down

0 comments on commit a177c4b

Please sign in to comment.