-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
vanillaplus-minecarts-slower/data/minecraft/recipes/powered_rail.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:stick" | ||
}, | ||
"R": { | ||
"item": "minecraft:redstone" | ||
}, | ||
"X": { | ||
"item": "minecraft:gold_ingot" | ||
} | ||
}, | ||
"pattern": [ | ||
"X X", | ||
"X#X", | ||
"XRX" | ||
], | ||
"result": { | ||
"count": 12, | ||
"item": "minecraft:powered_rail" | ||
}, | ||
"show_notification": true | ||
} |
6 changes: 6 additions & 0 deletions
6
vanillaplus-minecarts-slower/data/minecraft/tags/functions/load.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"values": | ||
[ | ||
"vanillapluscarts:load" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
vanillaplus-minecarts-slower/data/minecraft/tags/functions/tick.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"values": | ||
[ | ||
"vanillapluscarts:tick" | ||
] | ||
} |
2 changes: 2 additions & 0 deletions
2
vanillaplus-minecarts-slower/data/vanillapluscarts/functions/load.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
scoreboard objectives add VanillaPlusCartsXSpeed dummy | ||
scoreboard objectives add VanillaPlusCartsZSpeed dummy |
7 changes: 7 additions & 0 deletions
7
vanillaplus-minecarts-slower/data/vanillapluscarts/functions/speed.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
execute store result score @s VanillaPlusCartsXSpeed run data get entity @s Motion[0] 100 | ||
execute store result score @s VanillaPlusCartsZSpeed run data get entity @s Motion[2] 100 | ||
|
||
execute as @s[scores={VanillaPlusCartsXSpeed=50..}] at @s if block ~1 ~ ~ #minecraft:rails[shape=east_west] run tp @s ~0.5 ~ ~ | ||
execute as @s[scores={VanillaPlusCartsXSpeed=..-50}] at @s if block ~-1 ~ ~ #minecraft:rails[shape=east_west] run tp @s ~-0.5 ~ ~ | ||
execute as @s[scores={VanillaPlusCartsZSpeed=50..}] at @s if block ~ ~ ~1 #minecraft:rails[shape=north_south] run tp @s ~ ~ ~0.5 | ||
execute as @s[scores={VanillaPlusCartsZSpeed=..-50}] at @s if block ~ ~ ~-1 #minecraft:rails[shape=north_south] run tp @s ~ ~ ~-0.5 |
15 changes: 15 additions & 0 deletions
15
vanillaplus-minecarts-slower/data/vanillapluscarts/functions/tick.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
execute as @e[type=minecraft:minecart] at @s if entity @e[type=!minecraft:minecart,distance=..0.5] run function vanillapluscarts:speed | ||
execute as @e[type=minecraft:chest_minecart] at @s if entity @e[type=!minecraft:minecart,distance=..0.5] run function vanillapluscarts:speed | ||
|
||
forceload remove all | ||
|
||
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~ ~ #minecraft:rails[shape=east_west] run forceload add ~ ~ ~ ~ | ||
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~-1 ~ ~ #minecraft:rails[shape=east_west] run forceload add ~ ~ ~ ~ | ||
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~ ~ ~1 #minecraft:rails[shape=north_south] run forceload add ~ ~ ~ ~ | ||
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~ ~ ~-1 #minecraft:rails[shape=north_south] run forceload add ~ ~ ~ ~ | ||
|
||
execute as @e[type=chest_minecart] run execute at @s if block ~1 ~ ~ #minecraft:rails[shape=east_west] run execute at @s run forceload add ~ ~ ~ ~ | ||
execute as @e[type=chest_minecart] run execute at @s if block ~-1 ~ ~ #minecraft:rails[shape=east_west] run execute at @s run forceload add ~ ~ ~ ~ | ||
execute as @e[type=chest_minecart] run execute at @s if block ~ ~ ~1 #minecraft:rails[shape=north_south] run execute at @s run forceload add ~ ~ ~ ~ | ||
execute as @e[type=chest_minecart] run execute at @s if block ~ ~ ~-1 #minecraft:rails[shape=north_south] run execute at @s run forceload add ~ ~ ~ ~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"pack":{ | ||
"pack_format": 15, | ||
"supported_formats": {"min_inclusive": 15, "max_inclusive": 26}, | ||
"description": [{"text":"Vanilla Plus Minecarts - slower version","color":"aqua"}] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.