Date: 2025/02/14 09:15:26 UTC-08:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
gotospelllvlmenu:
type: item
material: spyglass
Display Name: <&c>LVL your Skills
spelllvlmenu:
type: inventory
inventory: chest
title: <&6><bold> --Level up Spells--
gui: true
slots:
- [] [] [] [] [] [] [] [] []
- [] [] [] [] [] [] [] [] []
- [spellmenuback] [Howmanyspellpoints] [] [] [] [] [] [] []
tospelllvlmenu:
type: world
events:
on player clicks gotospelllvlmenu in inventory:
- define spellname1 "<&4>Furystorm<&r>"
- define spellname2 "<&4>Berserk<&r>"
- define spellname3 "<&6>Holo Ramb<&r>"
- define spellname4 "<&4>Explode<&r>"
- define spellname5 "<&5>Runic Dash<&r>"
- define spellname6 "<&6>Brucher Stab<&r>"
- define spellname7 "<&3>Reoa´s Speed<&r>"
- define spellname8 "<&4>EXPLOSION<&r>"
- define spellname9 "<&d>Aura Totem<&r>"
- define spellname10 "<&b>Mana Blast<&r>"
- define spellname11 "<&a>Lifebloom<&r>"
- define spellname12 "<&4>Magic Frog Toss<&r>"
- define spellname13 "<&4>Furystorm<&r>"
- define spellname14 " "
- define spellname15 " "
- define spellname16 " "
- define spellname17 " "
- define spellname18 " "
- define spellname19 " "
- define spellname20 " "
- define spellname21 " "
- inventory open d:spelllvlmenu
- repeat 30 as:count:
- if <player.has_flag[spellown<[count]>]>:
- inventory set o:itemspell slot:<[count]> d:<player.open_inventory>
- wait 1t
after player right clicks item in spelllvlmenu:
- define spellname1 "<&4>Furystorm<&r>"
- define spellname2 "<&4>Berserk<&r>"
- define spellname3 "<&6>Holo Ramb<&r>"
- define spellname4 "<&4>Explode<&r>"
- define spellname5 "<&5>Runic Dash<&r>"
- define spellname6 "<&6>Brucher Stab<&r>"
- define spellname7 "<&3>Reoa´s Speed<&r>"
- define spellname8 "<&4>EXPLOSION<&r>"
- define spellname9 "<&d>Aura Totem<&r>"
- define spellname10 "<&b>Mana Blast<&r>"
- define spellname11 "<&a>Lifebloom<&r>"
- define spellname12 "<&4>Magic Frog Toss<&r>"
- define spellname13 "<&4>Furystorm<&r>"
- define spellname14 " "
- define spellname15 " "
- define spellname16 " "
- define spellname17 " "
- define spellname18 " "
- define spellname19 " "
- define spellname20 " "
- define spellname21 " "
- narrate <context.item.material>
- repeat 30 as:count:
- if <context.item.material> != m@air:
- if <context.item.material> != m@barrier[waterlogged=false]:
- if <context.item.material> != m@ender_eye:
- if <context.slot> == <[count]>:
- if <player.flag[spellpoints]> > 0:
- flag <player> spellpoints:-:1
- flag <player> spelllvl<[count]>:+:1
- inventory set o:Howmanyspellpoints slot:20 d:<player.open_inventory>
- inventory set o:itemspell slot:<[count]> d:<player.open_inventory>
- stop
itemspell:
type: item
material: spyglass
Display Name: <[spellname<[count]>]>
lore:
- <&r>Spell LVL: <&a><player.flag[spelllvl<[count]>].if_null[0]>