User Tools

Site Tools


tutorial:accesswideners

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:accesswideners [2021/02/18 05:33] – [Specifying file location] oroarmortutorial:accesswideners [2021/08/07 22:13] modmuss50
Line 15: Line 15:
   * Fabric-loader 0.8.0 or higher   * Fabric-loader 0.8.0 or higher
   * Loom 0.2.7 or higher   * Loom 0.2.7 or higher
- 
 ===== File format ===== ===== File format =====
  
Line 25: Line 24:
 accessWidener v1 <namespace> accessWidener v1 <namespace>
 </code> </code>
 +
 +**Once again, the namespace should match ''named'' when using yarn names and ''intermediary'' when using intermediary names.**
  
 Access widener files can have blank lines and comments starting with # Access widener files can have blank lines and comments starting with #
Line 105: Line 106:
  
 The access widener file location must be specified in your build.gradle and in your fabric.mod.json file. It should be stored in the resources as it needs to be included in the exported jar file. The access widener file location must be specified in your build.gradle and in your fabric.mod.json file. It should be stored in the resources as it needs to be included in the exported jar file.
 +
 +Loom 0.9 or higher:
  
 <code groovy [enable_line_numbers="true"]> <code groovy [enable_line_numbers="true"]>
-minecraft +loom 
- accessWidener  file("src/main/resources/modid.accesswidener")+ accessWidenerPath = file("src/main/resources/modid.accesswidener")
 } }
 </code> </code>
 +
 +Loom 0.8 or lower:
 +
 +<code groovy [enable_line_numbers="true"]>
 +loom {
 + accessWidener = file("src/main/resources/modid.accesswidener")
 +}
 +</code>
 +
 +fabric.mod.json:
  
 <code json [enable_line_numbers="true"]> <code json [enable_line_numbers="true"]>
tutorial/accesswideners.txt · Last modified: 2024/04/29 21:00 by ayutac