This commit is contained in:
2023-09-09 17:29:47 +02:00
parent d4875ea281
commit 0ea137dc58
17 changed files with 232 additions and 19 deletions

View File

@@ -35,3 +35,4 @@ services:
volumes:
# attach the relative directory 'data' to the container's /data path
- ../patata-data:/data
- ./simple-discord-bot.toml:/data/config/simple-discord-bot.toml

View File

@@ -35,7 +35,7 @@
#A DIRECT link to an image to use as the avatar for server messages. Also used for embeds
serverAvatar = ""
#The name to display for Server messages when using Webhooks
serverName = "AsyaCraft Server"
serverName = "PatataPack Server"
#Chat Config
[chatConfig]

View File

@@ -0,0 +1,27 @@
#Easy to access switches to toggle side features on and off.
#Most of them requires server restart or datapack reload. All of them, actually.
[features]
#For those who wants to remove Spirit Orbs generated in the world, more specifically...
# * Spirit Orbs generated in various chests
# * Spirit Orbs dropped by spawners and such
#Note that bargain recipe for Heart Containers/Stamina Vessels will persist, even if this option is disabled.
spiritOrbGens = true
#For those who wants to remove entirety of Heart Containers from the game, more specifically...
# * Heart Containers obtained by "challenges" (i.e. Killing dragon, wither, raid)
# * Bargains using Heart Containers (custom recipes won't be affected)
#Note that if this option is disabled while staminaVessels is enabled, "challenges" will drop stamina vessels instead.
heartContainers = true
#For those who wants to remove entirety of Stamina Vessels from the game, more specifically...
# * Bargains using Stamina Vessels (custom recipes won't be affected)
staminaVessels = true
#For those who wants to remove all structures added by this mod. Requires restart.
structures = true
[debug]
debugPlayerMovement = false
traceMovementPacket = false
traceVesselPacket = false
traceBargainPacket = false
traceWindPacket = false

View File

@@ -0,0 +1,74 @@
#Configuration file for player states.
#You can adjust stamina delta (negative value means consumption / positive value means gain) and
#recovery delay (in ticks) of all player states registered in the game.
#To reload the config, use the following command: /paraglider reloadPlayerStates
#
[paraglider]
[paraglider.ascending]
#Range: > -2147483648
staminaDelta = -3
#Range: > 0
recoveryDelay = 10
[paraglider.breathing_underwater]
#Range: > -2147483648
staminaDelta = 20
#Range: > 0
recoveryDelay = 0
[paraglider.flying]
#Range: > -2147483648
staminaDelta = 20
#Range: > 0
recoveryDelay = 0
[paraglider.idle]
#Range: > -2147483648
staminaDelta = 20
#Range: > 0
recoveryDelay = 0
[paraglider.midair]
#Range: > -2147483648
staminaDelta = 0
#Range: > 0
recoveryDelay = 0
[paraglider.on_vehicle]
#Range: > -2147483648
staminaDelta = 20
#Range: > 0
recoveryDelay = 0
[paraglider.panic_paragliding]
#Range: > -2147483648
staminaDelta = -3
#Range: > 0
recoveryDelay = 10
[paraglider.paragliding]
#Range: > -2147483648
staminaDelta = -3
#Range: > 0
recoveryDelay = 10
[paraglider.running]
#Range: > -2147483648
staminaDelta = -10
#Range: > 0
recoveryDelay = 10
[paraglider.swimming]
#Range: > -2147483648
staminaDelta = -6
#Range: > 0
recoveryDelay = 10
[paraglider.underwater]
#Range: > -2147483648
staminaDelta = 3
#Range: > 0
recoveryDelay = 0

View File

@@ -0,0 +1,41 @@
'offhand' : '{Count:1b,id:"minecraft:shield",tag:{Damage:0}}',
'head' : '',
'chest' : '',
'legs' : '',
'feet' : '{Count:1b,id:"minecraft:leather_boots",tag:{Damage:0}}',
0 : '{Count:1b,id:"minecraft:iron_sword",tag:{Damage:0}}',
1 : '{Count:16b,id:"minecraft:bread"}',
2 : '{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book": "patchouli:patatapack_guide"}}',
3 : '',
4 : '',
5 : '',
6 : '',
7 : '',
8 : '',
9 : '',
10 : '',
11 : '',
12 : '',
13 : '',
14 : '',
15 : '',
16 : '',
17 : '',
18 : '',
19 : '',
20 : '',
21 : '',
22 : '',
23 : '',
24 : '',
25 : '',
26 : '',
27 : '',
28 : '',
29 : '',
30 : '',
31 : '',
32 : '',
33 : '',
34 : '',
35 : '',

View File

@@ -0,0 +1,6 @@
{
// When this is set, wou won't be able to use the elevation feature of travel anchors
// but you'll teleport to the anchor you're looking at when jumping on another travel anchor
// This is a client option so each player can adjust it as they prefer.
"disable_elevation": false
}

View File

@@ -0,0 +1,17 @@
{
// Fire an EntityTeleportEvent before allowing the teleport.
// This allows other mods to prevent the teleport or change the destination.
"fireTeleportEvent": true,
// The maximum angle you can look at the Travel Anchor to teleport.
// Minimum: 1.0
"max_angle": 30,
// The maximum distance you are allowed to teleport.
// Minimum: 1.0
"max_distance": 64,
// The maximum distance you can short-range teleport with shift-click.
// Range: 2.0 - 15.0
"max_short_tp_distance": 7
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -1,12 +0,0 @@
// Listen to player login event
PlayerEvents.loggedIn('player.logged_in', event => {
// Check if player doesn't have "starting_items" stage yet
if (!event.player.stages.has('starting_items')) {
// Add the stage
event.player.stages.add('starting_items')
// Give some items to player
event.player.give(Item.of('patchouli:guide_book', '{"patchouli:book": "patchouli:patatapack_guide"}'))
event.player.give('10x create:bar_of_chocolate')
event.player.give('2x create:builders_tea')
}
})

View File

@@ -0,0 +1,29 @@
ServerEvents.recipes(event => { //listen for the "recipes" server event.
console.log('Extruding recipes')
event.recipes.createMechanicalExtruderExtruding(
Item.of('minecraft:andesite'),
[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')])
.withCatalyst('minecraft:polished_andesite')
event.recipes.createMechanicalExtruderExtruding(
Item.of('minecraft:netherrack'),
[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')])
.withCatalyst('minecraft:netherrack')
event.recipes.createMechanicalExtruderExtruding(
Item.of('minecraft:end_stone'),
[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')])
.withCatalyst('minecraft:end_stone')
event.recipes.createMechanicalExtruderExtruding(
Item.of('minecraft:soul_sand'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('minecraft:soul_soil')
event.recipes.createMechanicalExtruderExtruding(
Item.of('ad_astra:moon_sand'),[Fluid.of('minecraft:lava'),Fluid.of('minecraft:water')]).withCatalyst('ad_astra:moon_sand')
})

View File

@@ -0,0 +1,24 @@
ServerEvents.recipes(event => { //listen for the "recipes" server event.
console.log('Sifting recipes')
// event.recipes.create.item_application(['kubejs:crushed'], [['#forge:stripped_wood', '#forge:stripped_logs'], 'create:shadow_steel'])
event.smithing(
'kubejs:desh_mesh', // arg 1: output
'createsifter:brass_mesh', // arg 2: the item to be upgraded
'ad_astra:desh_ingot' // arg 3: the upgrade item
)
event.recipes.createsifterSifting([Item.of('minecraft:quartz').withChance(0.2),Item.of('minecraft:blaze_powder').withChance(0.1),Item.of('minecraft:ghast_tear').withChance(0.05),Item.of('minecraft:blaze_rod').withChance(0.05)], ['minecraft:soul_sand','createsifter:zinc_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:quartz').withChance(0.4),Item.of('minecraft:blaze_powder').withChance(0.2),Item.of('minecraft:ghast_tear').withChance(0.05),Item.of('minecraft:blaze_rod').withChance(0.05)], ['minecraft:soul_sand','createsifter:brass_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:chrous_fruit').withChance(0.1),Item.of('minecraft:ender_pearl').withChance(0.05)], ['minecraft:end_stone','createsifter:zinc_mesh'])
event.recipes.createsifterSifting([Item.of('minecraft:chrous_fruit').withChance(0.2),Item.of('minecraft:ender_pearl').withChance(0.1)], ['minecraft:end_stone','createsifter:brass_mesh'])
event.recipes.createsifterSifting([Item.of('ad_astra:desh_nugget').withChance(0.2),Item.of('minecraft:ostrum_nugget').withChance(0.1),Item.of('minecraft:calorite_nugget').withChance(0.05)], ['minecraft:deepslate','kubejs:desh_mesh'])
event.recipes.createsifterSifting([Item.of('ad_astra:desh_nugget').withChance(0.4),Item.of('minecraft:ostrum_nugget').withChance(0.3),Item.of('minecraft:calorite_nugget').withChance(0.1)], ['ad_astra:moon_sand','kubejs:desh_mesh'])
})

View File

@@ -1,6 +0,0 @@
// priority: 0
// Visit the wiki for more info - https://kubejs.com/
console.info('Hello, World! (Loaded startup scripts)')

View File

@@ -0,0 +1,12 @@
// priority: 0
// Visit the wiki for more info - https://kubejs.com/
StartupEvents.registry('item', event => {
event.create('crushed_netherrack').material('clay').hardness(0.5).displayName('Crushed Netherrack');
event.create('crushed_end_stone').material('clay').hardness(0.5).displayName('Crushed End Stone');
event.create('dust').material('sand').hardness(0.5).displayName('Dust');
event.create('desh_mesh','createsifter:mesh').displayName('Desh Mesh').parentModel("createsifter:block/meshes/mesh").texture("mesh","kubejs:item/desh_mesh");
})