Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.

damascus#16

Open
FrostyFlippper wants to merge 3 commits into
DaRealTurtyWurty:mainfrom
FrostyFlippper:main
Open

damascus#16
FrostyFlippper wants to merge 3 commits into
DaRealTurtyWurty:mainfrom
FrostyFlippper:main

Conversation

@FrostyFlippper

Copy link
Copy Markdown

added damascus ingots and weapons. Added more tags for jei. Fixed the ordering of the items in the iteminit to be organised.
Some small things still need to be polished, but this is being pulled now before you lock/delete this github so it doesnt get deleted. These other things I will fix tomorrow.

added damascus ingots and weapons. Added more tags for jei. Fixed the ordering of the items in the iteminit to be organised.

@tesinormed tesinormed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review of formatting and not actual code

Comment thread CREDITS.md
Comment thread CREDITS.md
Comment thread src/main/resources/data/forge/tags/items/raw_materials.json
@Override
public void appendHoverText(ItemStack pstack, @Nullable Level plevel,
List<Component> pTooltipComponents, TooltipFlag pIsAdvanced){
if(Screen.hasShiftDown()){

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will crash on the server. Do not use this. Instead use the method inside the player class

public void appendHoverText(ItemStack pstack, @Nullable Level plevel,
List<Component> pTooltipComponents, TooltipFlag pIsAdvanced){
if(Screen.hasShiftDown()){
pTooltipComponents.add(new TranslatableComponent("tooltip.ancientology.mjolnir"));

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should really be a constant. Creating a new component every time this method is called, is very expensive.

if(Screen.hasShiftDown()){
pTooltipComponents.add(new TranslatableComponent("tooltip.ancientology.mjolnir"));
} else{
pTooltipComponents.add(new TranslatableComponent("tooltip.ancientology.mjolnir.shift"));

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before, should be constant.

Comment thread src/main/resources/data/forge/tags/items/steel.json
FrostyFlippper and others added 2 commits February 14, 2022 13:35
…tems/MjolnirItem.java

Co-authored-by: xf8b <unknownperson23fs6zc@protonmail.com>
…tems/SchimitarItem.java

Co-authored-by: xf8b <unknownperson23fs6zc@protonmail.com>

@tesinormed tesinormed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

Comment thread CREDITS.md
Comment thread CREDITS.md
Comment thread src/main/resources/data/forge/tags/items/raw_materials.json
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants