Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

p1ut0nium

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

p1ut0nium's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. That was it. I had it on my NAS. Moved it to local PC and it ran.
  2. When I try to intsall forge-1.16.5-36.2.4 or higher it crashes with the following log: JVM info: Oracle Corporation - 1.8.0_301 - 25.301-b09 java.net.preferIPv4Stack=true Exception in thread "main" java.lang.IllegalArgumentException: URI has an authority component at java.io.File.<init>(Unknown Source) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:74) forge-1.16.5-36.2.0 installs fine.
  3. I'm trying to figure out how to create a multi-line define list in the TOML config file using ForgeConfigSpec. Anyone have any insights? Here's the code: public class AttributesConfig { final ForgeConfigSpec.ConfigValue<List<? extends String>> attributes; AttributesConfig(final ForgeConfigSpec.Builder builder) { builder.push("Attributes"); builder.comment("Add attribute modifiers to entities to change their stats. Takes 4-6 values seperated by a semicolon.", "Format: entity;attribute;operator;value;dimension;child", "entity: entity name", "attribute: attribute name (Possible attributes: " + AttributeHelper.getAttributesString() + ")", "operator: operator type (0 = add, 1 = multiply and add)", "value: value which will be used for the calculation", "dimension: dimension (ID) in which the entity should get the boost (optional! Leave this blank or use a \"/\" for any dimension)", "child: 0 = the modifier doesn't care if the entity is a child or not, 1 = adults only, 2 = children only (optional! Leave this blank for 0)"); attributes = builder .defineList("Attributes", Arrays.asList(Constants.ATTRIBUTE_DEFAULT), ELEMENT_VALIDATOR); builder.pop(); } } Here's the current output (all one line): "Attributes" = ["zombie;generic.maxHealth;1;0.5;/;1", "zombie_pigman;generic.maxHealth;1;0.5;/;1", "zombie_villager;generic.maxHealth;1;0.5;/;1", ...etc.] Here's what I'm trying to achieve: "Attributes" = "zombie;generic.maxHealth;1;0.5;/;1", "zombie_pigman;generic.maxHealth;1;0.5;/;1", "zombie_villager;generic.maxHealth;1;0.5;/;1" etc... Thanks!
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.