Initial commit

This commit is contained in:
2024-11-28 17:00:03 +00:00
commit c0bd808561
11697 changed files with 631986 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
const CustomPortalBuilder = java('net.kyrptonaught.customportalapi.api.CustomPortalBuilder')
onEvent('postinit', (event => {
CustomPortalBuilder.beginPortal()
['frameBlock(net.minecraft.resources.ResourceLocation)'](new ResourceLocation('buildersdelight', 'laboratory_3'))
.destDimID(new ResourceLocation('deceasedcraft', 'abyss'))
.lightWithItem(new ResourceLocation('zombie_extreme', 'magnetic_card'))
.flatPortal()
.tintColor(61, 61, 61)
.registerPortal();
}));
onEvent('block.modification', event => {
event.modify('buildersdelight:laboratory_3', block => {
block.destroySpeed = -1
block.explosionResistance = 9999999
})
});

View File

@@ -0,0 +1,25 @@
// priority: 0
console.info('Loaded mutation_sickness_check.js')
onForgeEvent('net.minecraftforge.event.entity.living.LivingChangeTargetEvent', event => {
//set the global changetarget function into here and restart your game once
global.changetarget(event)
})
/**
*
* @param {Internal.LivingChangeTargetEvent} event
*/
global.changetarget = event => {
//since this is a global event you can run /kubejs reload startup_scripts to reload whatever is in here without
//restarting the entire game!
let { entity, entity: { persistentData }, originalTarget, newTarget } = event
if (!entity.type.toString().includes("entity.mutationcraft")) return
if (newTarget == null) return
if (newTarget.type.toString().includes("entity.hordes") ||
newTarget.type.toString().includes("zombie") ||
newTarget.type.toString().includes("husk") ||
newTarget.type.toString().includes("drowned")) {
event.setNewTarget(null)
}
}

View File

@@ -0,0 +1,24 @@
onEvent('worldgen.remove', event => {
event.removeOres(ores => {
ores.blocks = [
'undead_revamp2:bostroxore',
'zombie_extreme:ore_steel',
'zombie_extreme:ore_tin',
'zombie_extreme:ore_lead',
'zombie_extreme:ore_ruby',
'zombie_extreme:ore_titan',
'zombie_extreme:thorium_ore',
'zombie_extreme:ore_aluminum',
'zombie_extreme:oil_shale_sand',
'zombie_extreme:burning_land_oil_shale',
'zombie_extreme:deepslate_steel',
'zombie_extreme:deepslate_tin',
'zombie_extreme:deepslate_lead',
'zombie_extreme:deepslate_ruby',
'zombie_extreme:deepslate_thorium',
'zombie_extreme:deepslate_aluminum',
'zombie_extreme:deepslate_titan' ]
})
event.removeFeatureById('vegetal_decoration', ['minecraft:glow_lichen'])
})

View File

@@ -0,0 +1,13 @@
// priority: 0
console.info('Hello, World! (You will only see this line once in console, during startup)')
onEvent('item.registry', event => {
// Register new items here
// event.create('example_item').displayName('Example Item')
})
onEvent('block.registry', event => {
// Register new blocks here
// event.create('example_block').material('wood').hardness(1.0).displayName('Example Block')
})