diff --git a/gradle.properties b/gradle.properties index 5907484..3506e21 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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. diff --git a/src/main/java/com/leisuretimedock/blasttravelreborn/content/entity/CannonEntity.java b/src/main/java/com/leisuretimedock/blasttravelreborn/content/entity/CannonEntity.java index d376ba7..8e301c6 100644 --- a/src/main/java/com/leisuretimedock/blasttravelreborn/content/entity/CannonEntity.java +++ b/src/main/java/com/leisuretimedock/blasttravelreborn/content/entity/CannonEntity.java @@ -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; diff --git a/src/main/java/com/leisuretimedock/blasttravelreborn/content/item/ItemEventHandler.java b/src/main/java/com/leisuretimedock/blasttravelreborn/content/item/ItemEventHandler.java new file mode 100644 index 0000000..2169ec5 --- /dev/null +++ b/src/main/java/com/leisuretimedock/blasttravelreborn/content/item/ItemEventHandler.java @@ -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); + } +} diff --git a/src/main/resources/assets/blasttravelreborn/lang/zh_cn.json b/src/main/resources/assets/blasttravelreborn/lang/zh_cn.json new file mode 100644 index 0000000..11f8179 --- /dev/null +++ b/src/main/resources/assets/blasttravelreborn/lang/zh_cn.json @@ -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发射" +}