Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

示例:添加「即将消逝的火」 #1

Merged
merged 1 commit into from
Jul 16, 2022
Merged
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: 2 additions & 0 deletions src/main/java/org/teacon/nocaet/GarlicRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.RotatedPillarBlock;
import net.minecraft.world.level.block.SoundType;
Expand Down Expand Up @@ -79,5 +80,6 @@ private static void registerBuiltin() {
}

private static void registerFlames() {
ITEMS.register("fading_flame", ()-> new Item(new Item.Properties().tab(TAB).rarity(Rarity.UNCOMMON)));
}
}
3 changes: 3 additions & 0 deletions src/main/resources/assets/nocaet/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"block.nocaet.log_strip_light": "Lighted Log Strip",
"block.nocaet.log_strip_shadow": "Shadowed Log Strip",
"item.nocaet.elder_scroll": "Ancient Scroll",
"item.nocaet.fading_flame": "即将消逝的火",
"item.nocaet.fading_flame.clue": "前往初始之地寻求火焰吧。",
"item.nocaet.fading_flame.tooltip": "即将在风中消散的火焰,蕴含着微弱的力量,\n就算再微弱的火,也能点燃大树——\n所以,去收集更多的火焰吧。",
"itemGroup.nocaet": "noCaeT",
"nocaet.command.progress": "Set progress to %s",
"nocaet.flame.tooltip": "TeaCon 2022 Collections",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "nocaet:item/fading_flame"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/main/resources/data/nocaet/tags/items/flames.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"replace": false,
"values": [
"nocaet:fading_flame"
]
}