Engineer's Decor, fix bug

This commit is contained in:
oitsjustjose 2022-07-27 10:43:00 -05:00
commit 1fb186454b
4 changed files with 73 additions and 4 deletions

View file

@ -0,0 +1,20 @@
#Settings affecting the logical server side.
[server]
#Opt-out settings
[server.optout]
#Opt-out any block by its registry name ('*' wildcard matching, comma separated list, whitespaces ignored. You must match the whole name, means maybe add '*' also at the begin and end. Example: '*wood*,*steel*' excludes everything that has 'wood' or 'steel' in the registry name. The matching result is also traced in the log file.
pattern_excludes = ""
#Prevent blocks from being opt'ed by registry name ('*' wildcard matching, comma separated list, whitespaces ignored. Evaluated before all other opt-out checks. You must match the whole name, means maybe add '*' also at the begin and end. Example: '*wood*,*steel*' includes everything that has 'wood' or 'steel' in the registry name.The matching result is also traced in the log file.
pattern_includes = ""
#Miscellaneous settings
[server.miscellaneous]
#Enables experimental features. Use at own risk.
with_experimental = false
#Enable that devices are dropped as item also in creative mode, allowing to relocate them with contents and settings.
with_creative_mode_device_drops = false
#Enable debug log messages for trouble shooting. Don't activate if not really needed, this can spam the log file.
with_debug_logging = false

View file

@ -117,6 +117,20 @@ const items = [
'dimstorage:dim_wall', 'dimstorage:dim_wall',
'dimstorage:solid_dim_core', 'dimstorage:solid_dim_core',
'enderchests:ender_pouch', 'enderchests:ender_pouch',
'engineersdecor:factory_hopper',
'engineersdecor:factory_placer',
'engineersdecor:fluid_barrel',
'engineersdecor:metal_bar',
'engineersdecor:small_block_breaker',
'engineersdecor:small_electrical_furnace',
'engineersdecor:small_fluid_funnel',
'engineersdecor:small_freezer',
'engineersdecor:small_solar_panel',
'engineersdecor:small_tree_cutter',
'engineersdecor:small_waste_incinerator',
'engineersdecor:straight_pipe_valve_redstone_analog',
'engineersdecor:straight_pipe_valve_redstone',
'engineersdecor:straight_pipe_valve',
'everycomp:all_woods', 'everycomp:all_woods',
'expandedstorage:candy_cane_mini_present_with_sparrow', 'expandedstorage:candy_cane_mini_present_with_sparrow',
'expandedstorage:candy_cane_mini_present', 'expandedstorage:candy_cane_mini_present',

View file

@ -152,8 +152,14 @@ global.recipes = event => ({
* @param {Internal.ItemStackJS} left * @param {Internal.ItemStackJS} left
* @param {Internal.ItemStackJS} right * @param {Internal.ItemStackJS} right
*/ */
automatableSmithing: function (out, left, right) { automatableSmithing: (out, left, right) => {
event.smithing(out, left, right); event.smithing(out, left, right);
global.recipes(event).giant(out, ['LR'], {L: left, R: right}); event.custom({
type: 'create:mechanical_crafting',
pattern: ['LR'],
key: {L: left, R: right},
result: out.toResultJson(),
acceptMirrored: false,
});
}, },
}); });

View file

@ -122,7 +122,7 @@ onEvent('recipes', event => {
); );
CustomRecipeHandler.automatableSmithing( CustomRecipeHandler.automatableSmithing(
'compactmachines:wall', Item.of('compactmachines:wall'),
Item.of('immersiveengineering:sheetmetal_lead'), Item.of('immersiveengineering:sheetmetal_lead'),
Item.of('minecraft:ender_pearl') Item.of('minecraft:ender_pearl')
); );
@ -146,7 +146,7 @@ onEvent('recipes', event => {
); );
CustomRecipeHandler.automatableSmithing( CustomRecipeHandler.automatableSmithing(
'compactmachines:personal_shrinking_device', Item.of('compactmachines:personal_shrinking_device'),
Item.of('tempad:tempad'), Item.of('tempad:tempad'),
Item.of('compactmachines:wall') Item.of('compactmachines:wall')
); );
@ -211,6 +211,34 @@ onEvent('recipes', event => {
); );
}; };
const engineersDecor = () => {
/* Old industrial wood intg */
event.remove({id: 'engineersdecor:dependent/old_industrial_planks_recipe'});
event.remove({id: 'engineersdecor:dependent/old_industrial_planks_recipe_vmirrored'});
event.recipes.create.splashing(
[Item.of('engineersdecor:old_industrial_wood_planks')],
Item.of('#forge:treated_wood')
);
/* Outright remove things */
event.remove({output: 'engineersdecor:metal_bar'});
event.replaceInput({}, 'engineersdecor:metal_bar', '#forge:rods/all_metal');
event.remove({output: 'engineersdecor:factory_hopper'});
event.remove({output: 'engineersdecor:factory_placer'});
event.remove({output: 'engineersdecor:fluid_barrel'});
event.remove({output: 'engineersdecor:small_block_breaker'});
event.remove({output: 'engineersdecor:small_electrical_furnace'});
event.remove({output: 'engineersdecor:small_fluid_funnel'});
event.remove({output: 'engineersdecor:small_freezer'});
event.remove({output: 'engineersdecor:small_solar_panel'});
event.remove({output: 'engineersdecor:small_tree_cutter'});
event.remove({output: 'engineersdecor:small_waste_incinerator'});
event.remove({output: 'engineersdecor:straight_pipe_valve_redstone_analog'});
event.remove({output: 'engineersdecor:straight_pipe_valve_redstone'});
event.remove({output: 'engineersdecor:straight_pipe_valve'});
};
const expandedstorage = () => { const expandedstorage = () => {
event.remove({id: 'expandedstorage:wood_chest'}); event.remove({id: 'expandedstorage:wood_chest'});
event.replaceInput({}, '#forge:chests/wooden', 'expandedstorage:wood_chest'); event.replaceInput({}, '#forge:chests/wooden', 'expandedstorage:wood_chest');
@ -381,6 +409,7 @@ onEvent('recipes', event => {
compactMachines(); compactMachines();
dave(); dave();
dimStorage(); dimStorage();
engineersDecor();
expandedstorage(); expandedstorage();
fluxNetworks(); fluxNetworks();
mcjty(); mcjty();