pala M-candy: 7 bonbons + effet 50k XP (vert/rainbow, wiki metiers)

This commit is contained in:
Anaïs Saraiva
2026-10-19 03:42:25 +02:00
parent 0e97130479
commit 1720463a87
27 changed files with 127 additions and 1 deletions
@@ -59,6 +59,16 @@ public final class PalaItems {
public static final Item TITANE_STICK = register("titane_stick", id -> new Item(new Item.Properties().setId(id)));
public static final Item TRIXIUM_GEM = register("trixium_gem", id -> new Item(new Item.Properties().setId(id)));
public static final Item XP_BERRIES = register("xp_berries", id -> new Item(new Item.Properties().setId(id)));
// M-candy (wiki metiers, VERIFIE partiel) : bonbons 50 000 XP. Vert = fermier et
// rainbow = tous (pages Evolution) ; autres couleurs = mapping non publie (items seuls,
// TODO:mapping-bonbons) ; candy/job_candy = nature inconnue (items seuls).
public static final Item CANDY = register("candy", id -> new Item(new Item.Properties().setId(id)));
public static final Item CANDY_BLUE = register("candy_blue", id -> new Item(new Item.Properties().setId(id)));
public static final Item CANDY_GREEN = register("candy_green", id -> new Item(new Item.Properties().setId(id)));
public static final Item CANDY_PINK = register("candy_pink", id -> new Item(new Item.Properties().setId(id)));
public static final Item CANDY_YELLOW = register("candy_yellow", id -> new Item(new Item.Properties().setId(id)));
public static final Item CANDY_RAINBOW = register("candy_rainbow", id -> new Item(new Item.Properties().setId(id)));
public static final Item JOB_CANDY = register("job_candy", id -> new Item(new Item.Properties().setId(id)));
// M-grinder-1 (wiki grinder) : patterns + socket + orbe. Textures d'origine legacy
// (textures/, jamais cablees). Les crafts complets + GUI arrivent en M-grinder-2.
public static final Item SOCKET_PATTERN = register("socket_pattern", id -> new Item(new Item.Properties().setId(id)));
@@ -67,6 +67,13 @@ public final class PalaTabs {
output.accept(PalaItems.TITANE_STICK);
output.accept(PalaItems.TRIXIUM_GEM);
output.accept(PalaItems.XP_BERRIES);
output.accept(PalaItems.CANDY);
output.accept(PalaItems.CANDY_BLUE);
output.accept(PalaItems.CANDY_GREEN);
output.accept(PalaItems.CANDY_PINK);
output.accept(PalaItems.CANDY_YELLOW);
output.accept(PalaItems.CANDY_RAINBOW);
output.accept(PalaItems.JOB_CANDY);
output.accept(PalaItems.SOCKET_PATTERN);
output.accept(PalaItems.HAMMER_PATTERN);
output.accept(PalaItems.BROADSWORD_PATTERN);
@@ -118,6 +118,20 @@ public final class PalaItemUseEvents {
stack.shrink(1);
return InteractionResult.PASS;
}
// M-candy (wiki metiers) : bonbon vert = +50 000 XP fermier, rainbow = +50 000 aux
// 4 metiers. Autres couleurs : mapping non publie (TODO:mapping-bonbons, sans effet).
if (item == PalaItems.CANDY_GREEN) {
fr.surviepote.pala.core.PalaJobs.addXp(sp, "fermier", 50000.0);
stack.shrink(1);
return InteractionResult.PASS;
}
if (item == PalaItems.CANDY_RAINBOW) {
for (String job : fr.surviepote.pala.core.PalaJobs.JOBS) {
fr.surviepote.pala.core.PalaJobs.addXp(sp, job, 50000.0);
}
stack.shrink(1);
return InteractionResult.PASS;
}
if (item == PalaItems.HANG_GLIDER) {
effect(sp, MobEffects.LEVITATION, 5, -4);
effect(sp, MobEffects.RESISTANCE, 1, 5);
@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "pala:item/candy"
}
}
@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "pala:item/candy_blue"
}
}
@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "pala:item/candy_green"
}
}
@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "pala:item/candy_pink"
}
}
@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "pala:item/candy_rainbow"
}
}
@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "pala:item/candy_yellow"
}
}
@@ -0,0 +1,6 @@
{
"model": {
"type": "minecraft:model",
"model": "pala:item/job_candy"
}
}
@@ -219,5 +219,12 @@
"item.pala.socket": "Socket",
"item.pala.orb_knockback": "Knockback Orb",
"item.pala.broadsword": "Broadsword",
"item.pala.fastsword": "Fastsword"
"item.pala.fastsword": "Fastsword",
"item.pala.candy": "Candy",
"item.pala.candy_blue": "Blue Candy",
"item.pala.candy_green": "Green Candy",
"item.pala.candy_pink": "Pink Candy",
"item.pala.candy_yellow": "Yellow Candy",
"item.pala.candy_rainbow": "Rainbow Candy",
"item.pala.job_candy": "Job Candy"
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "pala:item/candy"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "pala:item/candy_blue"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "pala:item/candy_green"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "pala:item/candy_pink"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "pala:item/candy_rainbow"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "pala:item/candy_yellow"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "pala:item/job_candy"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B