CFPAOrg / CFPAOrg/Minecraft-Mod-Language-Package
[模组翻译]:Create Confectionery 物品效果无法翻译
Open
Nobody has claimed this yet.
bug
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 1.1k
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 4
Description
简体中文资源包信息
n/a
模组英文名
Create Confectionery
模组版本
create-confectionery1.19.2_v1.0.9.jar
详细信息
网上找不到源代码,然后反编译了一下,发现是这样的
public class BarOfCaramelItem extends Item
{
public BarOfCaramelItem()
{
super((new net.minecraft.world.item.Item.Properties()).m_41491_(CreateConfectioneryModTabs.TAB_CREATE_CONFECTIONERY_TAB).m_41487_(64).m_41497_(Rarity.COMMON).m_41489_((new net.minecraft.world.food.FoodProperties.Builder()).m_38760_(6).m_38758_(0.3F).m_38767_()));
}
public float m_8102_(ItemStack par1ItemStack, BlockState par2Block)
{
return 0.0F;
}
public void m_7373_(ItemStack itemstack, Level world, List list, TooltipFlag flag)
{
super.m_7373_(itemstack, world, list, flag);
list.add(Component.m_237113_("\2479Speed (0:10)"));
}
public ItemStack m_5922_(ItemStack itemstack, Level world, LivingEntity entity)
{
ItemStack retval = super.m_5922_(itemstack, world, entity);
double x = entity.m_20185_();
double y = entity.m_20186_();
double z = entity.m_20189_();
BarOfCaramelFoodEatenProcedure.execute(entity);
return retval;
}
}
我没写过模组,对这个东西不是很懂,看上去像是硬编码的一些说明。
然后我尝试在数据包里面添加了下面的字段,但是并没有效果。
{
"§9Haste (0:10)": "§9急迫 (0:10)",
"§9Regeneration (0:06)": "§9生命恢复 (0:06)",
"§9Regeneration II (0:06)": "§9生命恢复 II (0:06)",
"§9Resistance (0:20)": "§9抗性提升 (0:20)",
"§9Rest (0:30)": "§9休憩 (0:30)",
"§9Saturation (0:02)": "§9饱和 (0:02)",
"§9Speed (0:10)": "§9速度 (0:10)",
"§9Stimulation (0:06)": "§9激励 (0:06)"
}
然后我就没辙了,发出来给各位看看
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the decompiled Create Confectionery BarOfCaramelItem tooltip code and the attempted data-pack entries shown in the issue. Verify how the hard-coded effect strings are surfaced in the language package; done means the listed effects render in Simplified Chinese for the reported mod version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- localization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100