-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Effect changes in 1.20.2 * Use correct list syntax * Remove export * Add mob_effect to registry list
- Loading branch information
Showing
11 changed files
with
38 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
use ::minecraft::util::EffectId; | ||
use ::minecraft::item::suspiciousstew::SuspiciousEffect; | ||
|
||
compound Mooshroom extends super::Breedable { | ||
/// The type of the mooshroom | ||
Type: Type, | ||
/// The effect that the mooshroom gives to suspicious stew | ||
EffectId: EffectId, | ||
/// The duration of the suspicious stew effect | ||
EffectDuration: int | ||
/// The effects that the mooshroom gives to suspicious stew | ||
stew_effects: [SuspiciousEffect] | ||
} | ||
|
||
enum(string) Type { | ||
Red = "red", | ||
Brown = "brown" | ||
} | ||
|
||
Mooshroom describes minecraft:entity[minecraft:mooshroom]; | ||
Mooshroom describes minecraft:entity[minecraft:mooshroom]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
use ::minecraft::util::EffectId; | ||
|
||
/// A suspicious stew item | ||
compound SuspiciousStew extends super::ItemBase { | ||
/// The effects this stew will give | ||
Effects: [Effect] | ||
effects: [SuspiciousEffect] | ||
} | ||
|
||
/// A suspicious stew effect | ||
compound Effect { | ||
compound SuspiciousEffect { | ||
/// The id of the effect | ||
EffectId: EffectId, | ||
id: id(minecraft:mob_effect), | ||
/// The duration of the effect in ticks | ||
EffectDuration: int @ 1.. | ||
} | ||
duration: int @ 1.. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,25 @@ | ||
/// A single potion effect | ||
compound PotionEffect { | ||
Id: EffectId, | ||
id: id(minecraft:mob_effect), | ||
/// Whether the effect particles are semi-transparent (like with a Beacon) | ||
Ambient: boolean, | ||
Amplifier: byte, | ||
Duration: int, | ||
ambient: boolean, | ||
amplifier: byte, | ||
duration: int, | ||
/// A lower amplifier effect of the same type. | ||
HiddenEffect: PotionEffect, | ||
hidden_effect: PotionEffect, | ||
/// Whether the effect particles should be shown | ||
ShowParticles: boolean, | ||
show_particles: boolean, | ||
/// Whether the effect icon should be shown | ||
ShowIcon: boolean | ||
show_icon: boolean, | ||
factor_calculation_data: FactorData | ||
} | ||
|
||
/// Numerical ids for effects | ||
enum(int) EffectId { | ||
Speed = 1, | ||
Slowness = 2, | ||
Haste = 3, | ||
MiningFatigue = 4, | ||
Strength = 5, | ||
InstantHealth = 6, | ||
InstantDamage = 7, | ||
JumpBoost = 8, | ||
Nausea = 9, | ||
Regeneration = 10, | ||
Resistance = 11, | ||
FireResistance = 12, | ||
WaterBreathing = 13, | ||
Invisibility = 14, | ||
Blindness = 15, | ||
NightVision = 16, | ||
Hunger = 17, | ||
Weakness = 18, | ||
Poison = 19, | ||
Wither = 20, | ||
HealthBoost = 21, | ||
Absorption = 22, | ||
Saturation = 23, | ||
Glowing = 24, | ||
Levitation = 25, | ||
Luck = 26, | ||
UnLuck = 27, | ||
SlowFalling = 28, | ||
ConduitPower = 29, | ||
DolphinsGrace = 30, | ||
BadOmen = 31, | ||
HeroOfTheVillage = 32, | ||
Darkness = 33 | ||
compound FactorData { | ||
padding_duration: int @ 0.., | ||
factor_start: float, | ||
factor_target: float, | ||
factor_current: float, | ||
ticks_active: int @ 0.., | ||
factor_previous_frame: float, | ||
had_effect_last_tick: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters