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

@@ -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");
})

View File

@@ -1,112 +0,0 @@
#General Mod Config
[general]
#The Token of the Bot to use. KEEP THIS PRIVATE
botToken = "MTAyNTA3NTM2NzI4OTAyODcxOA.GpzZpx.U7y1ffjLg9B1zXKeSFpRy249Cktc2ofvmeBWRE"
#Should the bot be enabled or not
enabled = true
#Should debug logging be enabled? WARNING: THIS CAN SPAM YOUR LOG!
debugging = false
#How quickly the bot status should update
activityUpdateInterval = 30
#The prefix to use for bot commands. Example: ~players
botPrefix = "~"
#Should the bot be allowed to whitelist/un-whitelist players. Whitelisting needs to be enabled on your server as well
whitelisting = false
#Should only admins be allowed to whitelist players
onlyAdminsWhitelist = true
#Do not add Playing. A status to display on the bot. You can use %players% and %maxplayers% to show the number of players on the server
botStatus = "Minecraft"
#A topic for the Chat Relay channel. You can use %player%, %maxplayers%, %uptime%, %tps% or just leave it empty.
channelTopic = "Playing Minecraft with %players%/%maxplayers% people | Uptime: %uptime%"
#Discord Invite Link used by the in-game invite command
inviteLink = ""
#Internal version control. DO NOT TOUCH!
configVersion = 10
#Webhook Config
[webhookConfig]
#Should webhook messages be used
enabled = false
#The URL of the channel webhook to use for Chat Messages
webhookurl = "https://discord.com/api/webhooks/1025293777679679508/pXyyCK24gRdIrr99b0gsmkHd08QUqBa3SJvGVRAy3O9_1COHXzdF1U4VHt7RkLlvzjkQ"
#The URL of the channel webhook to use for Server Messages Messages
webhookurlLogs = "https://discord.com/api/webhooks/1025293466776911933/PqQ4M8cF-aJWUi1cKIToLtTzVW3OwJDstDDzLkQppkHk2q9KQ2XVmbv3HSw7lSjeLcvH"
#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"
#Chat Config
[chatConfig]
#The ID of the channel to post in and relay messages from. This is still needed, even in webhook mode
channelID = 1025292808665452586
#If this ID is set, event messages will be posted in this channel instead of the chat channel
logChannelID = 1024353263811833928
#The type of image to use as the player icon in messages. Valid entries are: AVATAR, HEAD, BODY, COMBO
playerAvatarType = "COMBO"
#Should embeds be used instead of plain text messages for Chat Messages
useEmbeds = true
#Should embeds be used instead of plain text messages for Log Messages
useEmbedsLog = true
#Prefix to add to Minecraft when a message is relayed from Discord. Supports MC formatting. Use %user% for the Discord Username
mcPrefix = "§e[Discord]§r %user%: "
#Should messages from bots be relayed
ignoreBots = true
#Should SERVER STARTING messages be shown
serverStarting = true
#Should SERVER STARTED messages be shown
serverStarted = true
#Should SERVER STOPPING messages be shown
serverStopping = true
#Should SERVER STOPPED messages be shown
serverStopped = true
#Should the chat be relayed
playerMessages = true
#Should Join and Leave messages be posted
joinAndLeaveMessages = true
#Should Advancement messages be posted
advancementMessages = true
#Should Death Announcements be posted
deathMessages = true
#Should Messages from the /say command be posted
sendSayCommand = true
#Should commands be posted to discord
broadcastCommands = true
#Should Tell Raw messages be posted
sendTellRaw = true
#Should the ~discord command be enabled
inviteCommandEnabled = false
#Change the contents of certain event messages
[messages]
#Server Starting Message
serverStarting = "Arrancando el servidor / Server is starting..."
#Server Started Message
serverStarted = "El servidor está listo! / Server has started. Enjoy!"
#Server Stopping Message
serverStopping = "Parando el servidor / Server is stopping..."
#Server Stopped Message
serverStopped = "El servidor ha parado / Server has stopped..."
#Player Joined Message. Use %player% to display the player name
playerJoined = "%player% se ha unido al servidor / has joined the server!"
#Player Left Message. Use %player% to display the player name
playerLeft = "%player% se ha ido! / has left the server!"
#Achievement Messages. Available variables: %player%, %title%, %description%
achievements = "%player% has made the advancement [%title%]: %description%"
#Chat Messages. Available variables: %player%, %message%
chat = "%message%"
#The message to show when someone uses /discord command. You can use %inviteurl%
inviteMessage = "Hey, check out our discord server here -> %inviteurl%"
#Change in which channel messages appear
[messageDestinations]
#Should Server Starting/Started/Stopping/Stopped Messages be in chat. If false, it will appear in the log channel
statusInChat = false
#Should Join/Leave Messages be in chat. If false, it will appear in the log channel
joinLeaveInChat = false
#Should Advancement Messages be in chat. If false, it will appear in the log channel
advancementsInChat = false
#Should Death messages be in chat. If false, it will appear in the log channel
deathInChat = false