Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/generated/resources/assets/railcraft/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
"block.railcraft.electric_whistle_track": "Electric Whistle Track",
"block.railcraft.electric_wye_track": "Electric Wye Track",
"block.railcraft.elevator_track": "Elevator Track",
"block.railcraft.fenix_trail": "Fenix Trail",
"block.railcraft.empty_detector": "Empty Cart Detector",
"block.railcraft.etched_abyssal_stone": "Etched Abyssal Stone",
"block.railcraft.etched_quarried_stone": "Etched Quarried Stone",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ protected void addTags() {
RailcraftBlocks.IRON_WHISTLE_TRACK.get(),
RailcraftBlocks.IRON_LOCOMOTIVE_TRACK.get(),
RailcraftBlocks.IRON_THROTTLE_TRACK.get(),
RailcraftBlocks.IRON_ROUTING_TRACK.get());
RailcraftBlocks.IRON_ROUTING_TRACK.get(),
RailcraftBlocks.FENIX_TRACK.get());
this.tag(RailcraftTags.Blocks.REINFORCED_TRACK)
.add(RailcraftBlocks.REINFORCED_TRACK.get(),
RailcraftBlocks.REINFORCED_LOCKING_TRACK.get(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ private void trackTranslations() {
this.addBlock(RailcraftBlocks.IRON_LOCOMOTIVE_TRACK, "Iron Locomotive Track");
this.addBlock(RailcraftBlocks.IRON_THROTTLE_TRACK, "Iron Throttle Track");
this.addBlock(RailcraftBlocks.IRON_ROUTING_TRACK, "Iron Routing Track");
this.addBlock(RailcraftBlocks.FENIX_TRACK, "Fenix Track");

this.addBlock(RailcraftBlocks.ELEVATOR_TRACK, "Elevator Track");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,8 @@ protected void registerStatesAndModels() {
RailcraftBlocks.HIGH_SPEED_ELECTRIC_WHISTLE_TRACK.get(),
RailcraftBlocks.HIGH_SPEED_ELECTRIC_LOCOMOTIVE_TRACK.get(),
RailcraftBlocks.HIGH_SPEED_ELECTRIC_THROTTLE_TRACK.get());

this.simpleBlock(RailcraftBlocks.FENIX_TRACK.get());
}

private void createStrengthenedGlass(Block block) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ private void buildTracks(Consumer<FinishedRecipe> consumer) {
RailcraftItems.HIGH_SPEED_RAIL.get(), RailcraftItems.STONE_RAILBED.get());


ShapelessRecipeBuilder.shapeless(RailcraftItems.FENIX_TRACK.get())
.requires(Tags.Items.TOOLS_AXES)
.requires(Items.RAIL)
.unlockedBy(getHasName(Items.RAIL), has(Tags.Items.TOOLS_AXES))
.save(consumer);

ShapedRecipeBuilder
.shaped(RailcraftItems.HIGH_SPEED_ELECTRIC_WYE_TRACK.get(), 16)
.pattern("aba")
Expand Down Expand Up @@ -472,6 +478,12 @@ private static void tracks(Consumer<FinishedRecipe> finishedRecipe, Item result,
.save(finishedRecipe);
}

private static void tracks(Consumer<FinishedRecipe> finishedRecipe, Item result,
Ingredient kit, Item baseTrack) {


}

private static void wyeTracks(Consumer<FinishedRecipe> finishedRecipe, Item result,
Item rail, Item railBed) {
ShapedRecipeBuilder.shaped(result, 16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,15 @@ public boolean isHighSpeed() {
@Override
public void checkHighSpeed(BlockPos blockPos) {
var currentMotion = this.minecart.getDeltaMovement();
if (this.highSpeed) {
HighSpeedTrackUtil.checkSafetyAndExplode(this.level(), blockPos, this.minecart);
return;
}

/* Start Endxxr patch

//if (this.highSpeed) {
// HighSpeedTrackUtil.checkSafetyAndExplode(this.level(), blockPos, this.minecart);
// return;
//}

End Endxxr patch */

if (!HighSpeedTrackUtil.isTrackSafeForHighSpeed(this.level(), blockPos, this.minecart)) {
this.limitSpeed();
Expand Down Expand Up @@ -511,10 +516,15 @@ public void tick() {
if (this.highSpeed) {
if (MinecartUtil.cartVelocityIsLessThan(this.entity(), EXPLOSION_SPEED_THRESHOLD)) {
this.highSpeed = false;
} else if (this.launchState == LaunchState.LANDED) {
}
/* Start Endxxr's patch
else if (this.launchState == LaunchState.LANDED) {
HighSpeedTrackUtil.checkSafetyAndExplode(this.level(),
this.minecart.blockPosition(), this.entity());
}

End Endxxr's patch*/

}

// Fix flip
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/mods/railcraft/world/item/RailcraftItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ public static Collection<RegistryObject<Item>> entries() {
public static final RegistryObject<Item> HIGH_SPEED_TRACK =
blockItem("high_speed_track", RailcraftBlocks.HIGH_SPEED_TRACK);

public static final RegistryObject<Item> FENIX_TRACK =
blockItem("fenix_track", RailcraftBlocks.FENIX_TRACK);

public static final RegistryObject<Item> HIGH_SPEED_TRANSITION_TRACK =
blockItem("high_speed_transition_track", RailcraftBlocks.HIGH_SPEED_TRANSITION_TRACK);

Expand Down
21 changes: 11 additions & 10 deletions src/main/java/mods/railcraft/world/level/block/RailcraftBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,7 @@
import mods.railcraft.world.level.block.tank.SteelTankGaugeBlock;
import mods.railcraft.world.level.block.tank.SteelTankValveBlock;
import mods.railcraft.world.level.block.tank.SteelTankWallBlock;
import mods.railcraft.world.level.block.track.AbandonedTrackBlock;
import mods.railcraft.world.level.block.track.ElectricTrackBlock;
import mods.railcraft.world.level.block.track.ElevatorTrackBlock;
import mods.railcraft.world.level.block.track.ForceTrackBlock;
import mods.railcraft.world.level.block.track.HighSpeedElectricTrackBlock;
import mods.railcraft.world.level.block.track.HighSpeedTrackBlock;
import mods.railcraft.world.level.block.track.ReinforcedTrackBlock;
import mods.railcraft.world.level.block.track.StrapIronTrackBlock;
import mods.railcraft.world.level.block.track.TrackConstants;
import mods.railcraft.world.level.block.track.TrackTypes;
import mods.railcraft.world.level.block.track.*;
import mods.railcraft.world.level.block.track.actuator.SwitchTrackActuatorBlock;
import mods.railcraft.world.level.block.track.actuator.SwitchTrackLeverBlock;
import mods.railcraft.world.level.block.track.actuator.SwitchTrackMotorBlock;
Expand Down Expand Up @@ -937,6 +928,15 @@ private static PostBlock buildPost() {
.strength(TrackConstants.HARDNESS, TrackConstants.RESISTANCE)
.sound(SoundType.METAL)));

// Start Endxxr Patch
public static final RegistryObject<FenixTrackBlock> FENIX_TRACK =
deferredRegister.register("fenix_track",
() -> new FenixTrackBlock(BlockBehaviour.Properties.of(Material.METAL)
.noCollission()
.strength(TrackConstants.HARDNESS, TrackConstants.RESISTANCE)
.sound(SoundType.METAL)));
// End

public static final RegistryObject<TransitionTrackBlock> HIGH_SPEED_TRANSITION_TRACK =
deferredRegister.register("high_speed_transition_track",
() -> new TransitionTrackBlock(TrackTypes.HIGH_SPEED,
Expand Down Expand Up @@ -1379,6 +1379,7 @@ private static PostBlock buildPost() {
.strength(1.05F)
.sound(SoundType.METAL)));


public static final RegistryObject<FirestoneBlock> FIRESTONE_ORE =
deferredRegister.register("firestone_ore",
() -> new FirestoneBlock(BlockBehaviour.Properties.of(Material.STONE)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package mods.railcraft.world.level.block.track;

public class FenixTrackBlock extends TrackBlock {

public FenixTrackBlock(Properties properties) {
super(TrackTypes.IRON, properties);
}

}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.