Skip to content

Commit

Permalink
Add mod package folder for the slower version
Browse files Browse the repository at this point in the history
  • Loading branch information
darceno committed Dec 29, 2023
1 parent 1a53956 commit 1448906
Show file tree
Hide file tree
Showing 12 changed files with 141 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mod-darcenos-minecarts-slower/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

modLoader = 'lowcodefml'
loaderVersion = '[40,)'
license = 'MIT'
showAsResourcePack = false
mods = [
{ modId = 'mr_darcenos_minecarts', version = '1-slower.1.2', displayName = "Darceno's Minecarts", description = 'Improves minecarts for transportation, making them faster and able to load chunks.', logoFile = 'darcenos-minecarts_pack.png', updateJSONURL = 'https://api.modrinth.com/updates/RZw0JtqY/forge_updates.json', credits = 'Generated by Modrinth', authors = 'darceno', displayURL = 'https://modrinth.com/datapack/darcenos-minecarts' },
]
issueTrackerURL = 'https://github.com/darceno/darcenosminecarts/issues'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values":
[
"vanillapluscarts:load"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values":
[
"vanillapluscarts:tick"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
scoreboard objectives add VanillaPlusCartsXSpeed dummy
scoreboard objectives add VanillaPlusCartsZSpeed dummy
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
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 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 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 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 run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~ ~1 #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~-1 ~ ~-1 #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~ ~1 #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~ ~-1 #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~1 ~ #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~-1 ~ #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~-1 ~1 ~ #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~-1 ~-1 ~ #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~ ~1 ~1 #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~ ~-1 ~1 #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~ ~1 ~-1 #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~ ~-1 ~-1 #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~1 ~1 #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~-1 ~1 #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~-1 ~1 ~-1 #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~-1 ~-1 ~-1 #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~1 ~1 #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~-1 ~1 #minecraft:rails run forceload add ~ ~ ~ ~

execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~1 ~-1 #minecraft:rails run forceload add ~ ~ ~ ~
execute as @e[type=minecart] run execute at @s if entity @e[type=!minecraft:minecart,distance=..0.5] if block ~1 ~-1 ~-1 #minecraft:rails run forceload add ~ ~ ~ ~


execute as @e[type=chest_minecart] run execute at @s if block ~1 ~ ~ #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~-1 ~ ~ #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~ ~ ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~ ~ ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~1 ~ ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~-1 ~ ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~1 ~ ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~1 ~ ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~1 ~1 ~ #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~1 ~-1 ~ #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~-1 ~1 ~ #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~-1 ~-1 ~ #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~ ~1 ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~ ~-1 ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~ ~1 ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~ ~-1 ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~1 ~1 ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~1 ~-1 ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~-1 ~1 ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~-1 ~-1 ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~1 ~1 ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~1 ~-1 ~1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~

execute as @e[type=chest_minecart] run execute at @s if block ~1 ~1 ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
execute as @e[type=chest_minecart] run execute at @s if block ~1 ~-1 ~-1 #minecraft:rails run execute at @s run forceload add ~ ~ ~ ~
1 change: 1 addition & 0 deletions mod-darcenos-minecarts-slower/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"schemaVersion":1,"id":"mr_darcenos_minecarts","version":"1-slower.1.2","name":"Darceno's Minecarts","description":"Improves minecarts for transportation, making them faster and able to load chunks.","authors":["darceno"],"contact":{"homepage":"https://modrinth.com/datapack/darcenos-minecarts","sources":"https://github.com/darceno/darcenosminecarts","issues":"https://github.com/darceno/darcenosminecarts/issues"},"license":"MIT","icon":"darcenos-minecarts_pack.png","environment":"*","depends":{"fabric-resource-loader-v0":"*"}}
7 changes: 7 additions & 0 deletions mod-darcenos-minecarts-slower/pack.mcmeta
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":"Darceno's Minecarts - slower version","color":"aqua"}]
}
}
Binary file added mod-darcenos-minecarts-slower/pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mod-darcenos-minecarts-slower/quilt.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"schema_version":1,"quilt_loader":{"group":"com.modrinth","id":"mr_darcenos_minecarts","version":"1-slower.1.2","metadata":{"name":"Darceno's Minecarts","description":"Improves minecarts for transportation, making them faster and able to load chunks.","contributors":{"darceno":"Owner"},"contact":{"homepage":"https://modrinth.com/datapack/darcenos-minecarts","sources":"https://github.com/darceno/darcenosminecarts","issues":"https://github.com/darceno/darcenosminecarts/issues"},"icon":"darcenos-minecarts_pack.png"},"intermediate_mappings":"net.fabricmc:intermediary","depends":[{"id":"quilt_resource_loader","versions":"*","unless":"fabric-resource-loader-v0"}]}}

0 comments on commit 1448906

Please sign in to comment.