Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
800020h opened this issue Jul 5, 2023 · 3 comments
Open

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

800020h opened this issue Jul 5, 2023 · 3 comments

Comments

@800020h
Copy link

800020h commented Jul 5, 2023

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
Copy link
Author

800020h commented Jul 5, 2023

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
Copy link
Author

800020h commented Jul 5, 2023

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

{
  "type": "origins:model_color",
  "red": 0.5,
  "green": 0.5,
  "blue": 0.7
}

@800020h
Copy link
Author

800020h commented Jul 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants