Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/02/20 in all areas

  1. You may HAVE JDK 8, but that error indicates that is not the one Gradle is using
    1 point
  2. Technically, yes. Because the player could "have" the recipe for the pickaxe, but not the sword. This one was done in 1.12, but the syntax should be the same. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/resources/assets/harderores/advancements/recipes/stone_tools.json
    1 point
  3. I don't want to program servers, just mods.
    1 point
  4. 1.12.2 isn't supported on this forum anymore so this thread will be closed soon. Also for the future don't bump old threads make a new one instead. PM me if you don't find any answers to your problem currently I'm still working with 1.12.
    1 point
  5. Has recipe is a condition that says "does the player know the recipe? If so, grant the advancement." The recipe in question here is whatever recipe you're rewarding the player with. Not the ingredient's crafting recipe. Reward: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/data/expindustry/advancements/recipes/machine_filter.json#L29 Condition: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/data/expindustry/advancements/recipes/machine_filter.json#L23
    1 point
  6. I think you're looking for RenderTypeLookup.setRenderLayer(Block, RenderType) in your FMLClientSetupEvent. RenderTypeLookup.setRenderLayer(ModBlocks.FIREFLOWER_BLOCK.get(), RenderType.getCutout()); is what I have for a flower i made.
    1 point
  7. I believe part of the reason for forge moving to an event-based registration approach was to begin to make things possible. If everyone created and registered everything at the correct time (in the events), it wouldn't be too much of a stretch to begin working on hotloading (restore vanilla registry state, re run registry events, continue). However, it is not really a priority for anyone, and isn't feasible until everyone starts playing by the rules.
    1 point
  8. Those work like advancements: There's a small mention about advancements in recipes section, but doesn't really help much. https://mcforge.readthedocs.io/en/latest/utilities/recipes/ gamepedia is more helpful in this case: https://minecraft.gamepedia.com/Advancements EDIT: advancements json format: https://minecraft.gamepedia.com/Advancements/JSON_format about advancement conditions: https://minecraft.gamepedia.com/Advancements/Conditions to get you started you could use this as a template: it goes under src/main/resources/data/modid/advancements/recipes/item_name.json { "parent": "minecraft:recipes/root", "requirements": [ [ "has_item", "has_the_recipe" ] ], "criteria": { "has_item": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "tag": "forge:ingots/iron" } ] } }, "has_the_recipe": { "trigger": "minecraft:recipe_unlocked", "conditions": { "recipe": "modid:mod_item" } } }, "rewards": { "recipes": [ "modid:mod_item" ] } }
    1 point
  9. You could also set the sides of your event bus subscriber to prevent your subscribers from being loaded on a specific side. My bad.
    1 point
  10. You check for logical sides by using World::isRemote. if it is false the world is on the logical server if it is true you are on the logical client.
    1 point
  11. With difficulty. Here's how I modify the loot tables: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/FarmingEventHandler.java#L362 Note that this makes calls out to a library function, the important one is probably this one: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/LootUtils.java#L87
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.