Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • DrunkBlood

DrunkBlood

Members
 View Profile  See their activity
  • Content Count

    5
  • Joined

    February 25, 2020
  • Last visited

    April 27, 2020

Community Reputation

0 Neutral

About DrunkBlood

  • Rank
    Tree Puncher
  1. DrunkBlood

    Disable blocks, items, ench etc via Mod Config

    DrunkBlood replied to DrunkBlood's topic in Modder Support

    So how can I disable recipes?
    • April 27, 2020
    • 3 replies
  2. DrunkBlood started following [1.15.1] Forge Blockstates Json - can't find variants, Disable blocks, items, ench etc via Mod Config and [1.15]Custom Config Complex Data Structures April 20, 2020
  3. DrunkBlood

    Disable blocks, items, ench etc via Mod Config

    DrunkBlood posted a topic in Modder Support

    How do I disable features via my Mod Config the proper way? I tried only registering them when my Config says but that had problems with ModConfigEvent firing late and other default values not being set.
    • April 20, 2020
    • 3 replies
  4. DrunkBlood

    [1.15]Custom Config Complex Data Structures

    DrunkBlood posted a topic in Modder Support

    Hi, my mod uses an ore distribution to determine with which block it should replace. Currently I use as a default this table where each entry in the matrix is probability adding to 100% for each y-lvl except where my mod does not replace the block::stone y - level | coal | iron | gold | lapis | redstone | diamond >110 0 0 0 0 0 0 >60 1 0 0 0 0 0 >30 50 50 0 0 0 0 >15 25 50 15 10 0 0 >5 20 40 15 7 13 5 >0 0 0 0 0 0 0 For my config I want to be able to edit this matrix where the y-level border is, the blocks and the probability linked to them. Using nightconfig and ForgeConfigSpec (.define(String path/name, T defaultValue, Predicate<Object> validator)) I would implement my Data Structure T as an HashMap<Integer,List<HashMap<String,Float>>> with HashMap<y-level,List<HashMap<ResourceLocationofBlock,probability>>> (ResourceLocationofBlock as "namespace:block" like "minecraft:coal_ore") ,a custom Supplier giving the table above and a custom Predicate checking the ResourceLocationofBlock, the probabilty and wether all y-values are coverd. My Questions: Can I use a HashMap? in other words do I need to use a HashTable for thread safety Can I use ResourceLocation.isResouceNameValid(String) when my Config loads? (Using CLIENT_BUILDER since @OnlyIn(Dist.CLIENT)) Is there another way to allow an user to add custom blocks to my config? (My way would be an Array/List which is typed in the Config) Is this ForgeConfigSpec the way to do Config in Forge 1.15? Edit: changed y-level to Integer instead of String
    • March 8, 2020
  5. DrunkBlood

    Forge 1.14.X - Creating Custom Foods

    DrunkBlood replied to Zathrox's topic in User Submitted Tutorials

    Nice tutorial - worked for me I only have 1 Question: where you define your Item and instantiate it as null; Do you use the @ObjectHolder annotation to allow Minecraft Forge to fill the item or what?
    • February 25, 2020
    • 1 reply
  6. DrunkBlood DrunkBlood changed their profile photo February 25, 2020
  7. DrunkBlood

    [1.15.1] Forge Blockstates Json - can't find variants

    DrunkBlood posted a topic in Modder Support

    Trying to create my hay_eatable block with a PropertyDirection and a PropertyInteger from 0 to 9 I can't seem to create the right json file. Stacktrace, json and Block class are attached. stacktrace.txt hay_eatable.json BlockHayEatable.java
    • February 25, 2020
  • All Activity
  • Home
  • DrunkBlood
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community