Compare commits

..

No commits in common. "79631b6eb66fc9b67901e03cfce1b49be6b35cec" and "cd161a69a66dde732ab2cc46c3bc91a20cb54abc" have entirely different histories.

3 changed files with 29 additions and 101 deletions

View File

@ -26,12 +26,12 @@
magnetite_range = 64
[nether_portals_and_portal_fluid]
flint_and_steel_portal_lighting = false
flint_and_steel_portal_lighting = true
portal_destruction_crying_obsidian = true
portal_creation_sound = true
portal_destruction_sound = true
portal_fluid_drinking = true
instant_teleportation = false
instant_teleportation = true
piglins_give_crying_obsidian = true
dimensional_tears_from_crying_obsidian = false
dimensional_tears_from_respawn_anchor = true

View File

@ -21,7 +21,7 @@
- [x] common villager trades
- [x] villager explorer map trades
- [x] villager diet update
- [ ] villager diet update
- a village biome specific main crop that everybody eats
- more random snacks / drinks / beer on the second slot
- add more of farmer's complex food (4+ ingredients, cooked, etc)
@ -29,3 +29,10 @@
- [x] add configs for tidal towns
- they're just another plains village
- [ ] map atlases no longer need paper
- just remove all maintainence cost
- [ ] spyglass can be used from inventory & activates jade
- [ ] bottle of dimension tears required for nether portal

View File

@ -1,5 +1,4 @@
const { $RandomSource } = require("packages/net/minecraft/util/$RandomSource");
const { $Villager } = require("packages/net/minecraft/world/entity/npc/$Villager");
// level 5 just eat feast for 5 emeralds
const feast_list = [
@ -9,11 +8,6 @@ const feast_list = [
'farmersdelight:stuffed_pumpkin_block',
'farmersdelight:roast_chicken_block',
'farmersdelight:pasta_with_meatballs',
'abnormals_delight:perch_with_mushrooms',
'abnormals_delight:pike_with_beetroot',
'abnormals_delight:vension_with_bamboo_shoots',
'abnormals_delight:passion_fruit_glazed_duck',
];
// level 4 helps you with block collection
@ -75,7 +69,7 @@ const consumables = {
fisherman: ['2x aquaculture:fish_bones', '3x aquaculture:leech', '5x aquaculture:worm', '8x aquaculture:box',
'5x aquaculture:lockbox', '2x aquaculture:treasure_chest'],
// various potion arrows, bows, crossbows
fletcher: ['8x arrow', '4x caverns_and_chasms:large_arrow', '16x caverns_and_chasms:blunt_arrow', '8x savage_and_ravages:mischief_arrow'],
fletcher: ['bow', 'bow', 'bow', 'crossbow', 'crowssbow'],
// leather armor, bedrolls
leatherworker: ['leather_helmet', 'leather_chestplate', 'leather_leggings', 'leather_boots'],
// various dyes
@ -88,19 +82,21 @@ const consumables = {
// wool, eggs, milk, honey, slime ball
shepherd: ['3x white_wool', '8x environmental:duck_egg', '8x autumnity:turkey_egg', '4x environmental:yak_hair'],
// shovel, pick
toolsmith: ['iron_shovel', 'iron_pickaxe', 'iron_hoe', 'golden_shovel', 'golden_pickaxe', 'golden_hoe'],
toolsmith: ['iron_shovel', 'iron_pickaxe', 'golden_shovel', 'golden_pickaxe'],
// sword, axe
weaponsmith: ['iron_sword', 'iron_axe', 'golden_sword', 'golden_axe', 'bow', 'crossbow'],
weaponsmith: ['iron_sword', 'iron_axe', 'golden_sword', 'golden_axe'],
// rice, spaghetti, dough, crust
delightchef: ['8x farmersdelight:rice', '10x farmersdelight:raw_pasta', '10x farmersdelight:crust', '16x sugar'],
// cut raw meat
delightcook: ['16x bowl', '16x glass_bottle', '1x bucket', '8x farmersdelight:minced_beef', '8x farmersdelight:bacon'],
// planks
carpenter: [],
carpenter: ['32x oak_planks', '32x spruce_planks', '32x birch_planks', '32x jungle_planks', '32x pine_planks', '32x bamboo_planks',
'32x cherry_planks'],
};
const enchant_consumables = {
armorer: 1,
fletcher: 1,
leatherworker: 2,
toolsmith: 3,
weaponsmith: 2
@ -110,13 +106,17 @@ const enchant_consumables = {
const food_list = [
'8x minecraft:apple',
'8x minecraft:beetroot',
'8x minecraft:baked_potato',
'8x minecraft:bread',
'8x minecraft:carrot',
'8x minecraft:melon_slice',
'8x minecraft:sweet_berries',
'8x farmersdelight:pumpkin_slice',
'8x farmersdelight:cabbage_leaf',
'8x farmersdelight:tomato',
'8x farmersdelight:cooked_rice',
'8x farmersdelight:fried_egg',
'8x farmersdelight:onion',
'8x neapolitan:strawberries',
'8x neapolitan:banana',
@ -129,29 +129,8 @@ const food_list = [
'8x atmospheric:dragon_fruit',
'8x atmospheric:candied_orange_slices',
'8x atmospheric:roasted_yucca_fruit',
'brewinandchewin:beer',
'brewinandchewin:vodka',
'brewinandchewin:mead',
'brewinandchewin:rice_wine',
'brewinandchewin:pale_jane',
'brewinandchewin:egg_grog',
'brewinandchewin:bloody_mary',
'brewinandchewin:salty_folly',
'brewinandchewin:saccharine_rum',
];
const main_diet = {
'minecraft:desert': '8x #forge:milk',
'minecraft:plains': '8x bread',
'minecraft:savanna': '8x carrot',
'minecraft:snowy': '8x pumpkin_slice',
'minecraft:taiga': '8x baked_potato',
'minecraft:jungle': '8x farmersdelight:cooked_rice',
'minecraft:swamp': '8x mushroom_stew',
'atmospheric:scrubland': '8x atmospheric:dragon_fruit',
default: '8x bread'
}
/**
* @param {string[]} list
@ -242,28 +221,6 @@ const village_structures = {
'mmv:village_swamp': 1,
"atmospheric:village_scrubland" : 1
};
const village_logs = {
'minecraft:desert': 'minecraft:cactus',
'minecraft:plains': 'minecraft:oak_log',
'minecraft:savanna': 'minecraft:acacia_log',
'minecraft:snowy': 'minecraft:spruce_log',
'minecraft:taiga': 'minecraft:birch_log',
'minecraft:jungle': 'minecraft:jungle_log',
'minecraft:swamp': 'minecraft:dark_oak_log',
'atmospheric:scrubland': 'atmospheric:yucca_log'
};
// various saplings
const carpenter_trades = [
'minecraft:oak_sapling',
'minecraft:spruce_sapling',
'minecraft:birch_sapling',
'minecraft:acacia_sapling',
'minecraft:jungle_sapling',
'minecraft:dark_oak_sapling',
'minecraft:mangrove_sapling',
'minecraft:cherry_sapling',
'minecraft:azalea_sapling',
];
/**
* @param {Record<string, number>} map
*/
@ -279,7 +236,6 @@ MoreJSEvents.villagerTrades((event) => {
event.removeVanillaTrades();
event.removeModdedTrades();
// cartographers: explorer maps
const villages = make_weighted_list(village_structures)
const villageTrade = VillagerUtils.createStructureMapTrade(['2x emerald', 'map'], villages);
villageTrade.maxUses(1);
@ -295,28 +251,6 @@ MoreJSEvents.villagerTrades((event) => {
progressionTrade.maxUses(1);
event.addTrade('cartographer', 2, progressionTrade);
// carpenters: logs, saplings, planks, tree barks
event.addCustomTrade('sawmill:carpenter', 2, (offer, entity, random) => {
/** @type {$Villager} */
const villager = entity;
const villagerData = villager.getVillagerData();
const biome = villagerData.getType().toString();
const log = village_logs[biome] || 'minecraft:oak_log';
offer.setFirstInput('2x emerald');
offer.setOutput('16x ' + log);
offer.setMaxUses(1);
offer.setVillagerExperience(1);
offer.setPriceMultiplier(0.05);
});
event.addCustomTrade('sawmill:carpenter', 2, (offer, entity, random) => {
offer.setFirstInput('2x emerald');
offer.setOutput(roll(carpenter_trades, random));
offer.setMaxUses(1);
offer.setVillagerExperience(1);
offer.setPriceMultiplier(0.05);
});
const professions = VillagerUtils.getProfessions();
professions.forEach(prof => {
const profName = prof.name();
@ -334,27 +268,6 @@ MoreJSEvents.villagerTrades((event) => {
offer.setVillagerExperience(1);
offer.setPriceMultiplier(0.2);
});
// 1 level 1 trade
event.addCustomTrade(prof, 1, (offer, entity, random) => {
offer.setFirstInput(roll(food_list, random));
offer.setOutput('1x emerald');
offer.setMaxUses(1);
offer.setVillagerExperience(5);
offer.setPriceMultiplier(0.05);
});
// 1 diet trade
event.addCustomTrade(prof, 1, (offer, entity, random) => {
/** @type {$Villager} */
const villager = entity;
const villagerData = villager.getVillagerData();
const biome = villagerData.getType().toString();
const diet = main_diet[biome] || main_diet.default;
offer.setFirstInput(diet);
offer.setOutput('1x emerald');
offer.setMaxUses(1);
offer.setVillagerExperience(5);
offer.setPriceMultiplier(0.05);
});
// 2 for the rest
for(let i = 0; i < 2; i ++) {
// level 4
@ -384,6 +297,14 @@ MoreJSEvents.villagerTrades((event) => {
offer.setVillagerExperience(1);
offer.setPriceMultiplier(0.05);
});
// level 1
event.addCustomTrade(prof, 1, (offer, entity, random) => {
offer.setFirstInput(roll(food_list, random));
offer.setOutput('1x emerald');
offer.setMaxUses(1);
offer.setVillagerExperience(5);
offer.setPriceMultiplier(0.05);
});
}
});
});