AlmostReliable / summoningrituals

A Minecraft mod to create custom summoning rituals for items and mobs.
https://www.curseforge.com/minecraft/mc-mods/summoningrituals
GNU Lesser General Public License v3.0
10 stars 5 forks source link

I'm having trouble with summoning rituals, NBT, and apoli powers #17

Open 800020h opened 1 year ago

800020h commented 1 year ago

Version

1.19.2-2.0.4

Describe the bug!

some NBT refuses to work

here is the last thing I tried

ServerEvents.recipes(event => {

  event.recipes.summoningrituals.altar("minecraft:bone")
    .mobOutput(
      SummoningOutput.mob('minecraft:wolf')
        .data({ cardinal_components: { "apoli:powers": { Powers: [{ Type: "cot:buff_wolf", Sources: ["cot:test"], Data: {} }] } }, "apathy-spawnType": "spawner" })
    )
    .input('4x minecraft:rotten_flesh')
    .input('4x #farmersdelight:wolf_prey')
    .recipeTime(60) //600
  // .blockBelow('minecraft:hay_block')

})

after summoning the wolf just had cardinal_components: { "apoli:powers": { Powers: [] } } iirc

Crash Report

No response

Log

https://gist.github.com/800020h/42fed27f3111bf8c44c79b7d792de9d8

Additional Context

Yes

Modifications

a lot of mods including origins 1.7.1 which apoli is part of https://modrinth.com/mod/origins

Did the issue happen in singleplayer or on a server?

Singleplayer

800020h commented 1 year ago

the spawn type NBT is working as expected

I'm not getting any errors the summoned wolf doesn't have the power but the power works if I grant it with commands

the command /data merge entity <UUID> { cardinal_components: { "apoli:powers": { Powers: [{ Type: "cot:buff_wolf", Sources: ["cot:test"], Data: {} }] } }, "apathy-spawnType": "spawner" } also works

this also works

BlockEvents.rightClicked('minecraft:glass', event => {

  let buffWolf = event.block.createEntity('minecraft:wolf')
  buffWolf.x+=0.5
  buffWolf.z+=0.5
  buffWolf.mergeFullNBT({ cardinal_components: { "apoli:powers": { Powers: [{ Type: "cot:buff_wolf", Sources: ["cot:test"], Data: {} }] } }, "apathy-spawnType": "spawner" })
  buffWolf.spawn()

})

does summoning rituals do something weird? basically all I have confirmed is the NBT is correct

800020h commented 1 year ago

the power in kubejs/data/cot/powers/buff_wolf.json

{
  "type": "origins:model_color",
  "red": 0.5,
  "green": 0.5,
  "blue": 0.7
}
800020h commented 1 year ago

edited to add a log

it should contain the chat outputs from /data get entity both incorrect and correct

mod list has changed a bit since I first had the issue but it hasn't affected it