63 lines
No EOL
2 KiB
JavaScript
63 lines
No EOL
2 KiB
JavaScript
// SCICRAFT — The Dark Photon Protocol
|
|
// Custom items & blocks for the Protocol.
|
|
// Startup scripts: requires a full restart to apply.
|
|
|
|
const SC = global.SCICRAFT
|
|
|
|
StartupEvents.registry('item', event => {
|
|
// Photon Core — the raw fifth-force crystal. Lattice fuel.
|
|
event.create('scicraft:photon_core')
|
|
.displayName('Photon Core')
|
|
.texture('scicraft:item/photon_core')
|
|
.maxStackSize(64)
|
|
.tag('scicraft:photon')
|
|
.tag('c:gems')
|
|
.glow(true)
|
|
.tooltip('Dark photons — the binding force of the Door.')
|
|
|
|
// Photon Fragment — shattered cores recovered from the Darker.
|
|
event.create('scicraft:photon_fragment')
|
|
.displayName('Photon Fragment')
|
|
.texture('scicraft:item/photon_fragment')
|
|
.maxStackSize(64)
|
|
.tag('scicraft:photon')
|
|
.tag('c:gems')
|
|
.glow(true)
|
|
.tooltip('A splinter of light stolen from the collapse.')
|
|
|
|
// Void Stabilizer — the tool that re-seals Doors at the Lattice.
|
|
event.create('scicraft:void_stabilizer')
|
|
.displayName('Void Stabilizer')
|
|
.texture('scicraft:item/void_stabilizer')
|
|
.maxStackSize(1)
|
|
.unbreakable()
|
|
.tag('scicraft:stabilizer')
|
|
.tooltip('Per Spatium — the renegades\' seal for the wound in the world.')
|
|
})
|
|
|
|
StartupEvents.registry('block', event => {
|
|
// Quantum Lattice — the Protocol's emitter. Must stay powered.
|
|
event.create('scicraft:quantum_lattice', 'basic')
|
|
.displayName('Quantum Lattice')
|
|
.textureAll('scicraft:block/quantum_lattice')
|
|
.hardness(5.0)
|
|
.resistance(1200.0)
|
|
.material('metal')
|
|
.lightLevel(0.9)
|
|
.tagBlock('minecraft:mineable/pickaxe')
|
|
.tagBlock('minecraft:needs_diamond_tool')
|
|
|
|
// Renegade Glass — the TARDIS-blue glass of the Flight. Purely decorative.
|
|
event.create('scicraft:renegade_glass', 'glass')
|
|
.displayName('Renegade Glass')
|
|
.textureAll('scicraft:block/renegade_glass')
|
|
.hardness(0.3)
|
|
.resistance(0.3)
|
|
.material('glass')
|
|
.translucent(true)
|
|
.noSolid(true)
|
|
.tagBlock('minecraft:mineable/pickaxe')
|
|
.tagBlock('c:glass_blocks')
|
|
.tagBlock('c:glass')
|
|
.tagBlock('minecraft:impermeable')
|
|
}) |