Skip to content

Commit

Permalink
Dummy quest item
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Nov 22, 2024
1 parent 6a29818 commit 4356ce9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/generated/resources/assets/ltextras/lang/en_ud.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@
"item.ltextras.entity_wand": "puɐM ʎʇıʇuƎ",
"item.ltextras.image": "ǝbɐɯI",
"item.ltextras.invite": "ǝʇıʌuI",
"item.ltextras.quest": "ʇsǝnὉ",
"item.ltextras.tropical_map": "dɐW ןɐɔıdoɹ⟘",
"item.ltextras.tropicoin": "uıoƆıdoɹ⟘",
"itemGroup.ltextras.ltextras": "sɐɹʇxƎ⟘Ꞁ",
Expand Down
1 change: 1 addition & 0 deletions src/generated/resources/assets/ltextras/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@
"item.ltextras.entity_wand": "Entity Wand",
"item.ltextras.image": "Image",
"item.ltextras.invite": "Invite",
"item.ltextras.quest": "Quest",
"item.ltextras.tropical_map": "Tropical Map",
"item.ltextras.tropicoin": "TropiCoin",
"itemGroup.ltextras.ltextras": "LTExtras",
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/lovetropics/extras/ExtraItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public class ExtraItems {
})
.register();


public static final ItemEntry<Item> QUEST = REGISTRATE.item("quest", Item::new).register();

public static final ItemEntry<TropicMapItem> TROPICAL_MAP = REGISTRATE.item("tropical_map", TropicMapItem::new)
.initialProperties(() -> new Item.Properties().stacksTo(1))
.tab(LTExtras.TAB_KEY, modifier -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void onRegisterOverlays(RegisterGuiLayersEvent event) {
}
ItemStack item = player.getMainHandItem();
ImageData image = item.get(ExtraDataComponents.IMAGE);
if (item.is(ExtraItems.INVITE) && image != null) {
if (item.is(ExtraItems.INVITE) || item.is(ExtraItems.QUEST) && image != null) {
drawImage(graphics, image);
}
});
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4356ce9

Please sign in to comment.