BigPapi13 / Delta

Explosion-based player motion library for Minecraft
MIT License
116 stars 14 forks source link

On 1.20.6 #27

Open LioNoil11 opened 5 months ago

LioNoil11 commented 5 months ago

Thank you for allowing me to use this, it will be a great help to me.

So, I want to use this on 1.20.6 as well. Could you please update this?

SupFeder commented 5 months ago

yeah well said, we fudging need it

Pizza20000 commented 3 months ago

Agreed.

Cursdd commented 3 months ago

Its actually quite easy to fix it yourself. First, rename all the folders that end in s, except for tags, to have no s. E.g. advancements -> advancement. Then, go to the functions delta:internal/subtick/begin_launch and end_launch respectively, and change the first two summon commands to this In begin_launch:

summon minecraft:area_effect_cloud ~ ~10000 ~ {ReapplicationDelay:-1,Radius:0f,Duration:1,Age:-1,WaitTime:0,potion_contents:{custom_effects:[{id:"minecraft:instant_damage",amplifier:0,duration:1}]},Tags:["delta.init.aec"]}
summon minecraft:bat ~ ~10000 ~ {DeathLootTable:"minecraft:empty",NoAI:1b,Health:1.0f,Tags:["delta.pre_explosion"],PersistenceRequired:1b}'

In end_launch:

summon minecraft:area_effect_cloud ~ ~12000 ~ {ReapplicationDelay:-1,Radius:0f,Duration:1,Age:-1,WaitTime:0,potion_contents:{custom_effects:[{id:"minecraft:instant_damage",amplifier:0,duration:1}]},Tags:["delta.init.aec"]}
summon minecraft:bat ~ ~12000 ~ {DeathLootTable:"minecraft:empty",NoAI:1b,Health:1.0f,Tags:["delta.post_explosion"],PersistenceRequired:1b}

Finally, go the the item_modifier folder, and change the .json file inside to this:

{
  "function": "minecraft:copy_custom_data",
  "source": {
    "type": "minecraft:storage",
    "source": "delta:storage"
  },
  "ops": [
    {
      "source": "CustomModelData",
      "target": "CustomModelData",
      "op": "replace"
    }
  ]
}
Macisialek commented 2 months ago

Its actually quite easy to fix it yourself. First, rename all the folders that end in s, except for tags, to have no s. E.g. advancements -> advancement. Then, go to the functions delta:internal/subtick/begin_launch and end_launch respectively, and change the first two summon commands to this In begin_launch:

summon minecraft:area_effect_cloud ~ ~10000 ~ {ReapplicationDelay:-1,Radius:0f,Duration:1,Age:-1,WaitTime:0,potion_contents:{custom_effects:[{id:"minecraft:instant_damage",amplifier:0,duration:1}]},Tags:["delta.init.aec"]}
summon minecraft:bat ~ ~10000 ~ {DeathLootTable:"minecraft:empty",NoAI:1b,Health:1.0f,Tags:["delta.pre_explosion"],PersistenceRequired:1b}'

In end_launch:

summon minecraft:area_effect_cloud ~ ~12000 ~ {ReapplicationDelay:-1,Radius:0f,Duration:1,Age:-1,WaitTime:0,potion_contents:{custom_effects:[{id:"minecraft:instant_damage",amplifier:0,duration:1}]},Tags:["delta.init.aec"]}
summon minecraft:bat ~ ~12000 ~ {DeathLootTable:"minecraft:empty",NoAI:1b,Health:1.0f,Tags:["delta.post_explosion"],PersistenceRequired:1b}

Finally, go the the item_modifier folder, and change the .json file inside to this:

{
  "function": "minecraft:copy_custom_data",
  "source": {
    "type": "minecraft:storage",
    "source": "delta:storage"
  },
  "ops": [
    {
      "source": "CustomModelData",
      "target": "CustomModelData",
      "op": "replace"
    }
  ]
}

Could you by any chance fix it for 1.21 because it doesnt work and i really need it.