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

[模组翻译]:Create Confectionery 物品效果无法翻译 #3847

Open
swwind opened this issue Oct 14, 2023 · 5 comments
Open

[模组翻译]:Create Confectionery 物品效果无法翻译 #3847

swwind opened this issue Oct 14, 2023 · 5 comments
Labels
bug Bug.

Comments

@swwind
Copy link
Contributor

swwind commented Oct 14, 2023

简体中文资源包信息

n/a

模组英文名

Create Confectionery

模组版本

create-confectionery1.19.2_v1.0.9.jar

详细信息

image

网上找不到源代码,然后反编译了一下,发现是这样的

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)"
}

然后我就没辙了,发出来给各位看看

@swwind swwind added the bug Bug. label Oct 14, 2023
@Fish-cat-cat
Copy link
Contributor

网上找不到源代码,然后反编译了一下,发现是这样的

当然找不到,因为是闭源模组

我没写过模组,对这个东西不是很懂,看上去像是硬编码的一些说明。

的确是硬编码(只要不出现在en_us.json一般是硬编码)

@swwind
Copy link
Contributor Author

swwind commented Oct 15, 2023

我的强迫症犯了,我不允许我的整合包里面出现任何一句英文

Forwarded to https://legacy.curseforge.com/minecraft/mc-mods/create-confectionery/issues/10
不知道作者能不能看到

@Fish-cat-cat
Copy link
Contributor

你可以上 Discord

@3093FengMing
Copy link
Contributor

没用的,与其寻求作者不如自力更生:VP

@qznfbnj
Copy link
Contributor

qznfbnj commented Apr 14, 2024

我当初也是
image
后来在 https://mcp.thiakil.com 看这俩函数,怪不得一个行一个不行hhh
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug.
Projects
None yet
Development

No branches or pull requests

4 participants