Origins (Fabric)

Origins (Fabric)

15M Downloads

origins condition doesn't work for unknown reason

beanamin opened this issue · 1 comments

commented

so I'm making a power that petrifies the player in the sunlight without a helmet and to do so i'm using this code:

{
	"type": "origins:multiple",
	"petrify_ground":{
		"type": "origins:conditioned_attribute",
		"modifier": {
			"attribute": "minecraft:generic.movement_speed",
			"operation": "multiply_base",
			"value": -1,
			"name": "Petrification ground immobility"
		},
		"tick_rate": 15,
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:exposed_to_sun"
				},
				{
					"type": "origins:equipped_item",
					"equipment_slot": "head",
					"item_condition": {
						"type": "origins:empty"
					}
				}
			]
		}
	},
	"petrify_no_jump":{
		"type": "origins:modify_jump",
		"modifier": {
			"operation": "addition",
			"value": -10
		},
		"tick_rate": 15,
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:exposed_to_sun"
				},
				{
					"type": "origins:equipped_item",
					"equipment_slot": "head",
					"item_condition": {
						"type": "origins:empty"
					}
				}
			]
		}
	  },
	"petrify_armor_bonus":{
		"type": "origins:conditioned_attribute",
		"modifier": {
			"name": "Petrification Armor health bonus",
			"attribute": "minecraft:generic.armor",
			"value": 10.0,
			"operation": "addition"
		},
		"tick_rate": 15,
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:exposed_to_sun"
				},
				{
					"type": "origins:equipped_item",
					"equipment_slot": "head",
					"item_condition": {
						"type": "origins:empty"
					}
				}
			]
		}
	}
}

The modification of the first and third one, minecraft:generic.movement_speed and minecraft:generic.armor works but for some reason, the origins:modify_jump only uses the equipped head item part of the condition.

origins:modify_air_speed also has this issue when i tried it place of origins:modify_jump. I'm not sure if it's an issue with origins:and or origins:exposed_to_sun but changing the order doesn't seem to matter and when i use origins:exposed to sun both twice and by itself in the origins:and it works as intended.

What is happening and how do i fix it?

commented

This issue might be related to/a duplicate of #745 🤔