Code reformat, cleanup
This commit is contained in:
parent
ee23c1d656
commit
14f6b71e78
71 changed files with 4369 additions and 3704 deletions
|
|
@ -1,59 +1,59 @@
|
|||
onEvent("recipes", (event) => {
|
||||
event.remove({ input: "minecraft:elytra" });
|
||||
event.remove({ id: "alexsmobs:tarantula_hawk_elytra" });
|
||||
onEvent('recipes', event => {
|
||||
event.remove({input: 'minecraft:elytra'});
|
||||
event.remove({id: 'alexsmobs:tarantula_hawk_elytra'});
|
||||
|
||||
event.remove({ input: "customizableelytra:elytra_wing" });
|
||||
event.remove({ id: "customizableelytra:elytra_wing" });
|
||||
event.remove({ id: "customizableelytra:elytra_wing_vanilla" });
|
||||
event.remove({input: 'customizableelytra:elytra_wing'});
|
||||
event.remove({id: 'customizableelytra:elytra_wing'});
|
||||
event.remove({id: 'customizableelytra:elytra_wing_vanilla'});
|
||||
|
||||
// Mekanism HDPE Elytra
|
||||
event.custom({
|
||||
type: "mekanism:mek_data",
|
||||
result: { item: "mekanism:hdpe_elytra" },
|
||||
pattern: ["AHA", "HPH", "H H"],
|
||||
type: 'mekanism:mek_data',
|
||||
result: {item: 'mekanism:hdpe_elytra'},
|
||||
pattern: ['AHA', 'HPH', 'H H'],
|
||||
key: {
|
||||
A: { tag: "mekanism:alloys/atomic" },
|
||||
H: { item: "mekanism:hdpe_sheet" },
|
||||
P: { tag: "forge:elytra" },
|
||||
A: {tag: 'mekanism:alloys/atomic'},
|
||||
H: {item: 'mekanism:hdpe_sheet'},
|
||||
P: {tag: 'forge:elytra'},
|
||||
},
|
||||
});
|
||||
|
||||
// Quark Elytra duplication via Dragon Scale
|
||||
event
|
||||
.shapeless("customizableelytra:customizable_elytra", [
|
||||
"customizableelytra:customizable_elytra",
|
||||
"quark:dragon_scale",
|
||||
.shapeless('customizableelytra:customizable_elytra', [
|
||||
'customizableelytra:customizable_elytra',
|
||||
'quark:dragon_scale',
|
||||
])
|
||||
.keepIngredient("customizableelytra:customizable_elytra");
|
||||
.keepIngredient('customizableelytra:customizable_elytra');
|
||||
|
||||
// Tarantula Hawk Elytra
|
||||
event.shaped("alexsmobs:tarantula_hawk_elytra", ["WEW"], {
|
||||
W: "alexsmobs:tarantula_hawk_wing",
|
||||
E: "#forge:elytra",
|
||||
event.shaped('alexsmobs:tarantula_hawk_elytra', ['WEW'], {
|
||||
W: 'alexsmobs:tarantula_hawk_wing',
|
||||
E: '#forge:elytra',
|
||||
});
|
||||
|
||||
// Tconstruct Slimelytra
|
||||
event.custom({
|
||||
type: "tconstruct:casting_basin",
|
||||
type: 'tconstruct:casting_basin',
|
||||
cast: {
|
||||
tag: "forge:elytra",
|
||||
tag: 'forge:elytra',
|
||||
},
|
||||
cast_consumed: true,
|
||||
fluid: {
|
||||
tag: "tconstruct:ender_slime",
|
||||
tag: 'tconstruct:ender_slime',
|
||||
amount: 8000,
|
||||
},
|
||||
result: "tconstruct:slime_chestplate",
|
||||
result: 'tconstruct:slime_chestplate',
|
||||
cooling_time: 237,
|
||||
});
|
||||
});
|
||||
|
||||
/* Replaces all thrown elytra with CE Elytra */
|
||||
onEvent("entity.spawned", (event) => {
|
||||
if (event.getEntity().getType() === "minecraft:item") {
|
||||
onEvent('entity.spawned', event => {
|
||||
if (event.getEntity().getType() === 'minecraft:item') {
|
||||
const itemEntity = event.getEntity();
|
||||
if (itemEntity.getItem().getId() === "minecraft:elytra") {
|
||||
itemEntity.setItem(Item.of("customizableelytra:customizable_elytra"));
|
||||
if (itemEntity.getItem().getId() === 'minecraft:elytra') {
|
||||
itemEntity.setItem(Item.of('customizableelytra:customizable_elytra'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue