Chance Cubes

Chance Cubes

46M Downloads

Problem with Custom Rewards (1.10.2)

Opened this issue ยท 4 comments

commented

Minecraft Version: 1.10.2

Forge Version: forge1.10.2-12.18.3.2185
ChanceCubes Version: 1.10.2-3.0.1.207

The Issue: I decided to test out the custom rewards on schematics, everything worked well except for the relativetoplayer, I want to get the schematics to spawn with the player in the center but everytime I set "RelativeToPlayer:true", it keeps changing to "relativeToPlayer:true", so I thought it's not working because of the lowercase r, but everytime I make things uppercase, it keeps changing to lowercase after booting up Minecraft, like the 'xoffset' 'yoffset' 'zoffset'.

Here is the code I used for the schematic : Schematic Used

{ "Gold Spawn": { "chance": 0, "Schematic": [ { "fileName": "Gold.schematic", "falling": false, "delay": 0, "XOffSet": 0, "YOffSet": 0, "ZOffSet": 0, "RelativeToPlayer": true, "IncludeAirBlocks": false } ] } }

Origin: CurseForge

commented

I have fixed the wiki to use the lower case names as that is what they should be. As far as the relative to player part not working goes, I will look into it.

commented

PR is open for the fix, also it doesn't matter as the "standard" schematic format does not have a spec for a reference to the player that captures the schematic so the schematic loader in ChanceCubes doesn't look for one, that's why the reward's registry entry has offsets that can be entered manually, I've only seen one mod implement their own version of recording the offset where the schematic was "captured" from.

commented

By the way, the schematic was made using schematica, I don't know if that makes the relativetoplayer not work.

commented

Also updated the custom reward template file