Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Craft for 1.16 #8

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 2 additions & 0 deletions README.modrinth.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ Every mod, resourcepack or music included in this modpack can be used freely if
- [KubeJS](https://modrinth.com/mod/kubejs) [curseforge but newest versions are on modrinth] -> customize the game with JS
- [Architectury API](https://www.curseforge.com/minecraft/mc-mods/architectury) [curseforge but newest versions are on modrinth] -> lib for KubeJS
- [Rhino](https://www.curseforge.com/minecraft/mc-mods/rhino) [curseforge but newest versions are on modrinth] -> lib for KubeJS
- [Create](https://www.curseforge.com/minecraft/mc-mods/create) [curseforge but newest versions are on modrinth] -> base of the craft system
- [Flywheel](https://www.curseforge.com/minecraft/mc-mods/flywheel) [curseforge but newest versions are on modrinth] -> lib for Create

<!-- ### Mods - Environments -->

Expand Down
2 changes: 2 additions & 0 deletions modpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ Every mod, resourcepack or music included in this modpack can be used freely if
- [KubeJS](https://modrinth.com/mod/kubejs) [curseforge but newest versions are on modrinth] -> customize the game with JS
- [Architectury API](https://www.curseforge.com/minecraft/mc-mods/architectury) [curseforge but newest versions are on modrinth] -> lib for KubeJS
- [Rhino](https://www.curseforge.com/minecraft/mc-mods/rhino) [curseforge but newest versions are on modrinth] -> lib for KubeJS
- [Create](https://www.curseforge.com/minecraft/mc-mods/create) [curseforge but newest versions are on modrinth] -> base of the craft system
- [Flywheel](https://www.curseforge.com/minecraft/mc-mods/flywheel) [curseforge but newest versions are on modrinth] -> lib for Create

<!-- ### Mods - Environments -->

Expand Down
5 changes: 5 additions & 0 deletions modpack/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ Replace these mods by their modrinth version:
- CoroUtil
- ParCool!

Add:
- Create
- Flywheel
- KubeJS Create

## 0.10.2

**Theoretically compatible with 0.10.0 and 0.10.1 but not tested. Servers are highly encourage to upgrade**
Expand Down
15 changes: 15 additions & 0 deletions modpack/index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,11 @@ file = "mods/craftpresence.pw.toml"
hash = "c3874db9feb9c3b9adef86eb27d13b95b310accbdf96cc9d7fd6722d09dc216f"
metafile = true

[[files]]
file = "mods/create.pw.toml"
hash = "cf6a575860bb0c9ce92aa33ccf881a6a57363914f3c83487e9743f063fef7a91"
metafile = true

[[files]]
file = "mods/creativecore.pw.toml"
hash = "04c59cad26fb818ee8c6c361d50d696c53e71ea5473562b3d3f204359c86ccf9"
Expand Down Expand Up @@ -519,6 +524,11 @@ file = "mods/firstaid.pw.toml"
hash = "0eb4c27343f92386c14ca565b835219913213358e659d673b4a88cf83f230a15"
metafile = true

[[files]]
file = "mods/flywheel.pw.toml"
hash = "fdde87c3450325f15a72576976f305ca943953650b4c2b63e52186ad54c50307"
metafile = true

[[files]]
file = "mods/fx-control.pw.toml"
hash = "9c7bc14c64f1f137158c65d87820499e42ba0cde2063be5e3ca80ef0af8c689c"
Expand All @@ -534,6 +544,11 @@ file = "mods/in-control.pw.toml"
hash = "317eb19f430bbc6bc21dc5d605fc1db01c01c35c4d12a5bc6f10cc9d5cccbbee"
metafile = true

[[files]]
file = "mods/kubejs-create.pw.toml"
hash = "2788c7385ce99205644eed9455db75f8d29b3a133c50b0c25b46faa7f055c878"
metafile = true

[[files]]
file = "mods/kubejs.pw.toml"
hash = "03b95396f886a22987e8fee18d1b9855e4f06c09d166e180e3e0339665aeb36b"
Expand Down
120 changes: 0 additions & 120 deletions modpack/kubejs/assets/minecraft/blockstates/vine.json

This file was deleted.

121 changes: 121 additions & 0 deletions modpack/kubejs/server_scripts/craft-essentials.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// priority = 0

onEvent('recipes', event => {
event.remove({})

//crafting table
event.shapeless('4x minecraft:oak_planks', ['minecraft:oak_log'])
event.shapeless('4x minecraft:spruce_planks', ['minecraft:spruce_log'])
event.shapeless('4x minecraft:birch_planks', ['minecraft:birch_log'])
event.shapeless('4x minecraft:jungle_planks', ['minecraft:jungle_log'])
event.shapeless('4x minecraft:acacia_planks', ['minecraft:acacia_log'])
event.shapeless('4x minecraft:dark_oak_planks', ['minecraft:dark_oak_log'])
event.shapeless('4x minecraft:oak_planks', ['minecraft:stripped_oak_log'])
event.shapeless('4x minecraft:spruce_planks', ['minecraft:stripped_spruce_log'])
event.shapeless('4x minecraft:birch_planks', ['minecraft:stripped_birch_log'])
event.shapeless('4x minecraft:jungle_planks', ['minecraft:stripped_jungle_log'])
event.shapeless('4x minecraft:acacia_planks', ['minecraft:stripped_acacia_log'])
event.shapeless('4x minecraft:dark_oak_planks', ['minecraft:stripped_dark_oak_log'])

event.shapeless('2x minecraft:stick', ['#minecraft:planks', '#minecraft:planks'])

// Craft
event.shaped('minecraft:crafting_table', [
'PP ',
'PP ',
' '
], {
P: '#minecraft:planks'
})
event.shaped('minecraft:campfire', [
' S ',
'SCS',
'LLL'
], {
S: 'minecraft:stick',
C: 'minecraft:coal',
L: '#minecraft:logs'
})
event.shaped('minecraft:blast_furnace', [
'III',
'IFI',
'SSS'
], {
I: '#forge:ingots/iron',
F: 'minecraft:furnace',
S: 'minecraft:smooth_stone'
})
event.shaped('minecraft:smoker', [
' W ',
'WFW',
' C '
], {
W: '#minecraft:logs',
F: 'minecraft:furnace',
C: 'minecraft:campfire'
})

// Materials
event.shaped('#forge:ingots/iron', [
'NN ',
'NN ',
' '
], {
N: '#forge:nuggets/iron'
})
event.recipes.createPressing('kubejs:iron_plate', '2x #forge:ingots/iron')
event.recipes.createPressing('kubejs:iron_large_plate', '2x kubejs:iron_plate')
event.shaped('kubejs:iron_long_plate', [
'III',
' ',
' '
], {
I: '#forge:ingots/iron'
})
event.recipes.createPressing('kubejs:iron_big_plate', ['2x kubejs:iron_large_plate', '2x kubejs:iron_long_plate'])

// Tools
event.shaped('minecraft:iron_pickaxe', [
'III',
' S ',
' S '
], {
I: '#forge:ingots/iron',
S: 'minecraft:stick'
})
event.shaped('minecraft:iron_axe', [
' II',
' SI',
' S '
], {
I: '#forge:ingots/iron',
S: 'minecraft:stick'
})
event.shaped('minecraft:iron_shovel', [
' I ',
' S ',
' S '
], {
I: '#forge:ingots/iron',
S: 'minecraft:stick'
})
event.shaped('minecraft:iron_hoe', [
' II',
' S ',
' S '
], {
I: '#forge:ingots/iron',
S: 'minecraft:stick'
})

// Furnace
event.smelting('#forge:nuggets/iron', 'minecraft:iron_bars')
event.blasting('2x #forge:nuggets/iron', 'minecraft:iron_bars')

event.smelting('minecraft:cooked_porkchop', 'minecraft:porkchop')
event.smoking('2x minecraft:cooked_porkchop', 'minecraft:porkchop')

// Campfire
event.campfireCooking('minecraft:porkchop', 'minecraft:rotten_flesh')
})

13 changes: 13 additions & 0 deletions modpack/kubejs/server_scripts/craft-guns.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// priority = 1

onEvent('recipes', event => {
// Basic
event.shapeless('minecraft:gunpowder', ['#minecraft:sand', 'minecraft:coal'])

// Bullets
event.shapeless('tac:9mm_round', ['minecraft:gunpowder', '3x #forge:nuggets/iron'])
event.shapeless('tac:round45', ['minecraft:gunpowder', '#forge:ingots/iron'])
event.shapeless('tac:nato_559_bullet', ['minecraft:gunpowder', '#forge:ingots/iron', '2x #forge:nuggets/iron'])
event.shapeless('tac:10_gauge_round', ['2x minecraft:gunpowder', '#forge:ingots/iron', '#forge:nuggets/iron'])
event.shapeless('tac:win_30-30', ['2x minecraft:gunpowder', '2x #forge:ingots/iron'])
})
35 changes: 0 additions & 35 deletions modpack/kubejs/server_scripts/craft.js

This file was deleted.

8 changes: 8 additions & 0 deletions modpack/kubejs/startup_scripts/items.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// priority = 0

onEvent('item.registry', event => {
event.create('iron_plate').maxStackSize(16).displayName('Iron Plate')
event.create('iron_large_plate').maxStackSize(8).displayName('Large Iron Plate')
event.create('iron_long_plate').maxStackSize(16).displayName('Long Iron Plate')
event.create('iron_big_plate').maxStackSize(4).displayName('Big Iron Plate')
})
13 changes: 13 additions & 0 deletions modpack/mods/create.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Create"
filename = "create-mc1.16.5_v0.3.2g.jar"
side = "both"

[download]
hash-format = "sha1"
hash = "5b32b0310d037deed14200e3b748bd02d46d9471"
mode = "metadata:curseforge"

[update]
[update.curseforge]
file-id = 3536025
project-id = 328085
13 changes: 13 additions & 0 deletions modpack/mods/flywheel.pw.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "Flywheel (Legacy)"
filename = "flywheel-1.16-0.2.5.jar"
side = "both"

[download]
hash-format = "sha1"
hash = "30dbb119ce3d455bee065c0bef04a00827b3a5b3"
mode = "metadata:curseforge"

[update]
[update.curseforge]
file-id = 3535459
project-id = 486392
Loading