更新版本为1.0.5

添加了中文支持
将火炮物品添加到创造物品栏“功能性方块FUNCTIONAL_BLOCKS”中
This commit is contained in:
叁玖领域 2025-06-05 20:19:49 +08:00
parent da4b98c21b
commit c2140c0e55
4 changed files with 27 additions and 2 deletions

View File

@ -38,7 +38,7 @@ mod_name=BlastTravel-Reborn
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.0.4+1.20.1-forge
mod_version=1.0.5+1.20.1-forge
jsonem_version=0.2.1+1.20-fabrge
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.

View File

@ -18,7 +18,6 @@ import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.Component;
import net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket;
import net.minecraft.network.protocol.game.ClientboundTeleportEntityPacket;
import net.minecraft.network.syncher.EntityDataAccessor;
import net.minecraft.network.syncher.EntityDataSerializers;
import net.minecraft.network.syncher.SynchedEntityData;

View File

@ -0,0 +1,16 @@
package com.leisuretimedock.blasttravelreborn.content.item;
import com.leisuretimedock.blasttravelreborn.BlastTravelReborn;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
@Mod.EventBusSubscriber(modid = BlastTravelReborn.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ItemEventHandler {
@SubscribeEvent
public static void onCreativeEvent(BuildCreativeModeTabContentsEvent event) {
if (event.getTabKey() == CreativeModeTabs.FUNCTIONAL_BLOCKS)
event.accept(BTRItems.CANNON_ITEM);
}
}

View File

@ -0,0 +1,10 @@
{
"container.blasttravelreborn.cannon_container_menu": "大炮",
"item.blasttravelreborn.cannon": "大炮",
"entity.blasttravelreborn.cannon": "大炮实体",
"death.attack.blasttravelreborn.cannon": "%s被飞行的%s击倒了",
"dialog.blasttravelreborn.full_cannon": "大炮已装满!",
"dialog.blasttravelreborn.no_gunpowder": "大炮没有火药了!",
"mount.blasttravelreborn.cannon.onboard": "按%s离开或按%s发射"
}