Skip to content

Commit

Permalink
illusionary block recipes. tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePansmith committed Mar 6, 2025
1 parent d0f058a commit ab4d35c
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 8 deletions.
26 changes: 25 additions & 1 deletion kubejs/client_scripts/tooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,30 @@ ItemEvents.tooltip( tooltip => {
}
const pureore = ['minecraft:raw_iron', 'minecraft:raw_copper', 'minecraft:raw_gold', 'thermal:raw_lead', 'thermal:raw_nickel', 'create:raw_zinc']
pureore.forEach(pureore => {
tooltip.add(pureore, [`§7A purer grade of ore`,`§7Can only be found by exploring`])
tooltip.add(pureore, [`§7A purer grade of ore.`,`§7Can only be found by exploring.`])
})

tooltip.addAdvanced(["/^kubejs:.+machine$/", "thermal:machine_frame", "ae2:controller"], (item, adv, text) => {
if (!tooltip.shift) {
text.add(1, Text.gray('Hold [Shift] for Summary'))
} else {
text.add(1, Text.gray('Hold [Shift] for Summary'))
text.add(2, Text.gray(''))
text.add(3, Text.gold('A machine, able to be transformed into a variety of useful gadgets and gizmos.' ))
// Too hand-holdy?
// text.add(4, Text.gold('Machine Transformation can be automated with a Deployer or a Filtered Saw.'))
}
})

tooltip.addAdvanced(["/^kubejs:trial.+$/"], (item, adv, text) => {
if (!tooltip.shift) {
text.add(1, Text.gray('Hold [Shift] for Summary'))
} else {
text.add(1, Text.gray('Hold [Shift] for Summary'))
text.add(2, Text.gray(''))
text.add(3, Text.gold('An odd form of copper caused by a reaction between Copper and Lumisense, discovered by those that built the trial chambers.' ))
text.add(4, Text.gold('Its far cheaper than regular copper, but is still able to fool the naked eye and does not oxidize. Perfect for base building!' ))
}
})

})
43 changes: 43 additions & 0 deletions kubejs/server_scripts/recipes/illusonaryblocks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
ServerEvents.recipes(event => {

event.custom({
"type": "tconstruct:melting",
"ingredient": {"item": 'minecraft:glow_berries'},
"result": {
"fluid": 'supplementaries:lumisene',
"amount": 100
},
"temperature": 200,
"time": 6
}).id(`kubejs:smeltery/melting/lumisene`)


let illusion = (input) => {
const output = `kubejs:trial_${input.replace(/^minecraft:|^trials:/, '')}`;
event.custom({
"type": "create:filling",
"ingredients": [
{ "item": input },
{ "fluid": "supplementaries:lumisene", "amount": 90 }
],
"results": [
{ "item": `9x ${output}` }
]
})
}

illusion("minecraft:copper_block");
illusion("minecraft:cut_copper");
illusion("minecraft:cut_copper_stairs");
illusion("minecraft:cut_copper_slab");
illusion("minecraft:oxidized_copper");
illusion("minecraft:oxidized_cut_copper_stairs");
illusion("minecraft:oxidized_cut_copper_slab");
illusion("minecraft:oxidized_cut_copper");
if (Platform.isLoaded('trials')) {
illusion("trials:chiseled_copper");
illusion("trials:copper_grate");
illusion("trials:chiseled_copper_oxidized");
illusion("trials:copper_grate_oxidized");
}
})
3 changes: 2 additions & 1 deletion kubejs/server_scripts/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ ServerEvents.tags('item', event => {
event.get('kubejs:chromatic_resonators').add(KJ('chromatic_resonator'))
event.get('kubejs:flash_drives').add(KJ('flash_drive'))

event.get('kubejs:sellable_discs').add('minecraft:music_disc_13', 'minecraft:music_disc_cat', 'minecraft:music_disc_blocks', 'minecraft:music_disc_chirp', 'minecraft:music_disc_far', 'minecraft:music_disc_mall', 'minecraft:music_disc_mellohi', 'minecraft:music_disc_stal', 'minecraft:music_disc_strad', 'minecraft:music_disc_ward', 'minecraft:music_disc_11', 'minecraft:music_disc_wait', 'minecraft:music_disc_otherside', 'minecraft:music_disc_5', 'minecraft:music_disc_pigstep', 'minecraft:music_disc_relic', 'supplementaries:music_disc_heave_ho', 'quark:music_disc_endermosh', 'trials:music_disc_creator_box', 'trials:music_disc_precipice', 'trials:music_disc_creator', 'biomesoplenty:music_disc_wanderer', 'integrated_stronghold:music_disc_sight', 'integrated_stronghold:music_disc_forlorn');
event.get('kubejs:machines').add('kubejs:andesite_machine').add('kubejs:copper_machine').add('kubejs:gold_machine').add('kubejs:brass_machine').add('kubejs:zinc_machine').add('kubejs:lead_machine').add('thermal:machine_frame').add('kubejs:enderium_machine').add('ae2:controller')

event.get('kubejs:sellable_discs').add('minecraft:music_disc_13', 'minecraft:music_disc_cat', 'minecraft:music_disc_blocks', 'minecraft:music_disc_chirp', 'minecraft:music_disc_far', 'minecraft:music_disc_mall', 'minecraft:music_disc_mellohi', 'minecraft:music_disc_stal', 'minecraft:music_disc_strad', 'minecraft:music_disc_ward', 'minecraft:music_disc_11', 'minecraft:music_disc_wait', 'minecraft:music_disc_otherside', 'minecraft:music_disc_5', 'minecraft:music_disc_pigstep', 'minecraft:music_disc_relic', 'supplementaries:music_disc_heave_ho', 'quark:music_disc_endermosh', 'trials:music_disc_creator_box', 'trials:music_disc_precipice', 'trials:music_disc_creator', 'biomesoplenty:music_disc_wanderer', 'integrated_stronghold:music_disc_sight', 'integrated_stronghold:music_disc_forlorn');
event.get('kubejs:transaction_cards').add('#kubejs:transaction_cards/import')
event.get('kubejs:transaction_cards').add('#kubejs:transaction_cards/profession')

Expand Down
6 changes: 3 additions & 3 deletions kubejs/startup_scripts/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ StartupEvents.registry("block", event => {
event.create('trial_cut_copper_stairs', "stairs").textureAll('minecraft:block/cut_copper').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Cut Copper Stairs")
event.create('trial_cut_copper_slab', "slab").textureAll('minecraft:block/cut_copper').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Cut Copper Slab")

event.create('trial_oxidized_copper_block').model('minecraft:block/oxidized_copper').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Block of Copper")
event.create('trial_oxidized_copper').model('minecraft:block/oxidized_copper').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Block of Copper")
event.create('trial_oxidized_cut_copper').model('minecraft:block/oxidized_cut_copper').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Cut Copper")
event.create('trial_oxidized_chiseled_copper').model('trials:block/chiseled_copper_oxidized').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Chiseled Copper")
event.create('trial_oxidized_copper_grate').model('trials:block/copper_grate_oxidized').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Copper Grate").notSolid().waterlogged()
event.create('trial_chiseled_copper_oxidized').model('trials:block/chiseled_copper_oxidized').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Chiseled Copper")
event.create('trial_copper_grate_oxidized').model('trials:block/copper_grate_oxidized').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Copper Grate").notSolid().waterlogged()
event.create('trial_oxidized_cut_copper_stairs', "stairs").textureAll('minecraft:block/oxidized_cut_copper').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Cut Copper Stairs")
event.create('trial_oxidized_cut_copper_slab', "slab").textureAll('minecraft:block/oxidized_cut_copper').soundType('metal').tagBlock("mineable/pickaxe").tagBlock("needs_stone_tool").requiresTool(true).hardness(3.0).resistance(6.0).displayName("Illusionary Oxidized Cut Copper Slab")

Expand Down
5 changes: 5 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,11 @@
"projectID": 363363,
"required": true
},
{
"fileID": 6262032,
"projectID": 635042,
"required": true
},
{
"fileID": 6157360,
"projectID": 899330,
Expand Down
5 changes: 2 additions & 3 deletions mods/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Why the mod jars?
- Computercraft tweaked has stopped uploading patches to curseforge. This includes the patch that fixes it crashing with Create 6.0. The mod itself is on the [Approved Non-CurseForge Mods list](https://support.curseforge.com/en/support/solutions/articles/9000197913-non-curseforge-mods), and as such can be included in packs this way. Ideally I want this to be handed via buildscripts (no repo bloat), but for now this will work.
- Ad Astra [has fixed](https://github.com/terrarium-earth/Ad-Astra/issues/692) crashing with Create V6, but has not pushed it to curseforge. As such, the repo will temporarily contain a patched build of the mod to help playtesters.
# Why the mod jar?
- Computercraft tweaked has stopped uploading patches to curseforge. This includes the patch that fixes it crashing with Create 6.0. The mod itself is on the [Approved Non-CurseForge Mods list](https://support.curseforge.com/en/support/solutions/articles/9000197913-non-curseforge-mods), and as such can be included in packs this way. Ideally I want this to be handed via buildscripts (no repo bloat), but for now this will work.

0 comments on commit ab4d35c

Please sign in to comment.