更新版本为1.0.5-fix
Forge最低版本可以为47.3.5
This commit is contained in:
parent
c2140c0e55
commit
6f412fcb35
|
|
@ -7,7 +7,7 @@ minecraft_version=1.20.1
|
||||||
# as they do not follow standard versioning conventions.
|
# as they do not follow standard versioning conventions.
|
||||||
minecraft_version_range=[1.20.1,1.21)
|
minecraft_version_range=[1.20.1,1.21)
|
||||||
# The Forge version must agree with the Minecraft version to get a valid artifact
|
# The Forge version must agree with the Minecraft version to get a valid artifact
|
||||||
forge_version=47.4.1
|
forge_version=47.3.5
|
||||||
# The Forge version range can use any version of Forge as bounds or match the loader version range
|
# The Forge version range can use any version of Forge as bounds or match the loader version range
|
||||||
forge_version_range=[47,)
|
forge_version_range=[47,)
|
||||||
# The loader version range can only use the major version of Forge/FML as bounds
|
# The loader version range can only use the major version of Forge/FML as bounds
|
||||||
|
|
@ -38,8 +38,8 @@ mod_name=BlastTravel-Reborn
|
||||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=MIT
|
mod_license=MIT
|
||||||
# The mod version. See https://semver.org/
|
# The mod version. See https://semver.org/
|
||||||
mod_version=1.0.5+1.20.1-forge
|
mod_version=1.0.5+1.20.1-forge-fix
|
||||||
jsonem_version=0.2.1+1.20-fabrge
|
jsonem_version=0.2.2+1.20-fabrge
|
||||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
# 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.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@ import org.slf4j.LoggerFactory;
|
||||||
public class BlastTravelReborn {
|
public class BlastTravelReborn {
|
||||||
public static final String MOD_ID = "blasttravelreborn";
|
public static final String MOD_ID = "blasttravelreborn";
|
||||||
public static final Logger LOG = LoggerFactory.getLogger("Blast Travel Reborn");
|
public static final Logger LOG = LoggerFactory.getLogger("Blast Travel Reborn");
|
||||||
public BlastTravelReborn(FMLJavaModLoadingContext fmlJavaModLoadingContext) {
|
public BlastTravelReborn() {
|
||||||
|
FMLJavaModLoadingContext fmlJavaModLoadingContext = FMLJavaModLoadingContext.get();
|
||||||
IEventBus modEventBus = fmlJavaModLoadingContext.getModEventBus();
|
IEventBus modEventBus = fmlJavaModLoadingContext.getModEventBus();
|
||||||
BTRNetwork.register();
|
BTRNetwork.register();
|
||||||
BTRItems.register(modEventBus);
|
BTRItems.register(modEventBus);
|
||||||
|
|
@ -25,6 +26,6 @@ public class BlastTravelReborn {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ResourceLocation id(String path) {
|
public static ResourceLocation id(String path) {
|
||||||
return ResourceLocation.fromNamespaceAndPath(MOD_ID, path);
|
return new ResourceLocation(MOD_ID, path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ public class BTREntityTypes {
|
||||||
"cannon",
|
"cannon",
|
||||||
() -> EntityType.Builder.<CannonEntity>of(CannonEntity::new, MobCategory.MISC)
|
() -> EntityType.Builder.<CannonEntity>of(CannonEntity::new, MobCategory.MISC)
|
||||||
.sized(1, 0.8f)
|
.sized(1, 0.8f)
|
||||||
.build((ResourceLocation.fromNamespaceAndPath(BlastTravelReborn.MOD_ID, "cannon")).toString()
|
.build((BlastTravelReborn.id("cannon")).toString()
|
||||||
));
|
));
|
||||||
public static void register(IEventBus eventBus) {
|
public static void register(IEventBus eventBus) {
|
||||||
ENTITY_TYPES.register(eventBus);
|
ENTITY_TYPES.register(eventBus);
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ public class CannonBehavior {
|
||||||
public ResourceLocation headTexture(CannonEntity entity) {
|
public ResourceLocation headTexture(CannonEntity entity) {
|
||||||
var player = entity.getClientPlayer();
|
var player = entity.getClientPlayer();
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
return ResourceLocation.withDefaultNamespace("missing");
|
return new ResourceLocation("missing");
|
||||||
}
|
}
|
||||||
|
|
||||||
return player.getSkinTextureLocation();
|
return player.getSkinTextureLocation();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ loaderVersion = "${loader_version_range}" #mandatory This is typically bumped ev
|
||||||
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
||||||
license = "${mod_license}"
|
license = "${mod_license}"
|
||||||
# A URL to refer people to when problems occur with this mod
|
# A URL to refer people to when problems occur with this mod
|
||||||
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
|
issueTrackerURL="https://github.com/LeisureTimeDock/BlastTravel_Neo_Forge" #optional
|
||||||
# A list of mods - how many allowed here is determined by the individual mod loader
|
# A list of mods - how many allowed here is determined by the individual mod loader
|
||||||
[[mods]] #mandatory
|
[[mods]] #mandatory
|
||||||
# The modid of the mod
|
# The modid of the mod
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user