Origins (Fabric)

Origins (Fabric)

15M Downloads

[1.21.1] Burn power doesn't work when a sub-power inside a multiple power type

Bruhnanza opened this issue ยท 2 comments

commented

The burn power functions correctly when used individually, but when used as a sub-power of the multiple power type it does not function. The power is recognized as displays in the powers list but does not function.

commented

I can't reproduce this issue in Origins 1.13.0-alpha.9. Can you send the power and the entire output log? For context, this is the data I've used to attempt to reproduce the issue, which is very basic and works as expected:

data/example/powers/this_fire.json5

{
	type: "origins:multiple",
	is_out_of_control: {
		type: "origins:burn",
		interval: 10,
		burn_duration: 20
	},
	im_burning: {
		type: "origins:self_glow",
		condition: {
			type: "origins:on_fire"
		}
	}
}
commented

For the output log are you referencing latest.log? Here it is; I tried a couple more attempts after dumbing it down even further to try anything. For me I seem to not be able to get any multiple power itself to work like in Example 3.

I'm not sure what I am doing wrong but if it an issue on my side I apologize for that. I also tried using your example power and nothing happened for me. I am going to reinstall the mod as I'm not sure what's the disconnect.

Here are some of the things I've tried:

Example 1
{
	"type": "origins:multiple",
	"burn": {
		"type": "origins:burn",
		"interval": 20,
		"burn_duration": 6
	},
	"fire": {
		"type": "origins:self_glow",
		"condition": {
			"type": "origins:on_fire"
		}
	}
}
Example 2
{
	"type": "origins:multiple",
	"burn": {
		"condition": {
			"type": "origins:all_of",
			"conditions": [
				{
					"type": "origins:exposed_to_sun"
				},
				{
					"type": "origins:invisible",
					"inverted": true
				}
			]
		},
		"type": "origins:burn",
		"interval": 20,
		"burn_duration": 6
	},
	"effects": {
		"condition": {
			"type": "origins:all_of",
			"conditions": [
				{
					"type": "origins:exposed_to_sun"
				},
				{
					"type": "origins:invisible",
					"inverted": true
				}
			]
		},
		"type": "origins:stacking_status_effect",
		"min_stacks": 0,
		"max_stacks": 361,
		"duration_per_stack": 20,
		"tick_rate": 20,
		"effects": [
			{
				"id": "minecraft:mining_fatigue",
				"ambient": true,
				"show_particles": false
			},
			{
				"id": "minecraft:weakness",
				"ambient": true,
				"show_particles": false
			}
		]
	}
}
Example 3
{
	"type": "origins:multiple",
	"1": {
		"type": "origins:self_glow",
		"condition": {
			"type": "origins:on_fire"
		}
	},
	"2": {
		"type": "origins:disable_regen"
	}
}

If you need me to try or send anything else over just say the word.