webbukkit / DynmapBlockScan

Tool to scan post-1.8 MC blocks and JSON model data to automatically generate Dynmap models
63 stars 30 forks source link

Using block id aliases and DynmapBlockScan? #25

Open squid-box opened 6 years ago

squid-box commented 6 years ago

As there are some mods that are troublesome to render, even with DynmapBlockScan (looking at you, Chisel), is it possible to use the block alias list (used to replace one block type with another in the render, eg. hide diamond ore as regular stone on the map)?

The setting in dynmap/configuration.txt is:

block-id-alias:
    "14": 1
    "15": 1
    "16": 1

From my attempts at replacing eg. Chisel marble with quartz blocks, it seems like the setting is overridden/ignored (or I'm misunderstanding how to use it).

I'd really just like to "hide" the render holes caused by this :)

I'm running:

mikeprimm commented 6 years ago

Oops - sorry - haven't documented this change, but block aliases in v3.0 are block NAME based vs block ID based. I failed to update the default configuration.txt with the proper description. The new form is:

block-alias: "blockname": "blockname-to-map-to"

So, for your example, it'd be:

block-alias: "sand": "stone" "gravel": "stone" "gold_ore": "stone"

For mod blocks, use 'modid:blockname' format : e.g. "minecraft:stone"

squid-box commented 6 years ago

Fantastic to hear, thank you :)

BonaireDreams commented 5 years ago

Did you have any luck getting chisel blocks to show? I've tried block-id-alias without any luck. Trying to get the pyramids in Pyramid Reborn 3 to show, even if they are all just plain sandstone.

"chisel:sandstoneyellow": "minecraft:sandstone" "chisel:sandstoneyellow1": "minecraft:sandstone" "chisel:sandstoneyellow2": "minecraft:sandstone" "chisel:sandstone-scribbles": "minecraft:sandstone" These did not work. Still have nothing but black for all chisel blocks. image

squid-box commented 5 years ago

I hadn't noticed because I haven't had any Chisel blocks visible on the dynmap, but no it doesn't seem to work for me either. I just did a trivial test of adding this to my configuration.txt:

block-id-alias:
    "chisel:cobblestone": "minecraft:cobblestone"

Any place I place chisel:cobblestone is handled the same way. Also applies to many other mod blocks, like "traverse:fir_planks"

Eld0r commented 5 years ago

Isn't the new section name "block-alias:" instead of "block-id-alias:" ;) Anyway I'll post my test result after I collected some block replacements for blocks my folk use on their buildings and restarted the server. yea.. block-alias and block-id-alias don't work as expected. BTW there is no config relaoding while server running? - would understand that ^^ running SevTech Ages 3.0.8 with:

senue commented 5 years ago

31

Eld0r commented 5 years ago

Thx for the chisel jar! too bad Sevtech Ages use Chisel 0.2.0.31 (I may force my people to update to this version but I hate to force the client customizations ^^) BTW: forget to update my post: Problem still exist with Dynmap-3.0-SNAPSHOT-forge-1.12.2 (03-Feb-2019) - this version seem to have a problem with the player body sprite files

senue commented 5 years ago

@Eld0r You are welcome! You don't have to update: Open my Chisel.jar and copy the json files under assets/chisel/blockstates into the same folder of the Chisel.jar you are running on the server (except default.json and auto_chisel.json) No need to do anything on the client side and this should work fine.

Eld0r commented 5 years ago

Ah thx @senue, works like a charm! So easy to just replace the blockstates. (You should add this hint to https://github.com/webbukkit/DynmapBlockScan/issues/31 ^^)

Nethertheless other Mods are still missing, like portal tree leaves from the betweenlands, drawers, liquid starlight from astral sorcery or rivers with flowing water placed by the sevtech world generator (see background of pic).

Chisel render in progress... ^^ image

senue commented 5 years ago

Glad i could help :smile: