Austin's RPG Classes

Data Pack Austin's RPG Classes 2e Patch 5

thisisnotaustin

New member

Offline

New member
The description says that magic wand uses gold ingot, but the code is using gold nugget. Because of that, when I try to craft a dagger, it crafts a wand instead.
Code:
#Forging recipes
execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:book",Count:1b}}] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:golden_sword"}},distance=0..1,limit=1] unless entity @s[nbt={Fire:-1s}] if entity @p[distance=..6] run function ab_classes:forge/enchiridion
execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:written_book",tag:{ab_item:1b}}}] at @s unless entity @s[nbt={Fire:-1s}] run function ab_classes:forge/enchiridion
execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:stick",Count:1b}}] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:gold_nugget",Count:1b}},distance=0..1,limit=1] unless entity @s[nbt={Fire:-1s}] if entity @p[distance=..6] run function ab_classes:forge/magic_wand
execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:stick",Count:2b}}] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:iron_ingot",Count:2b}},distance=0..1,limit=1] unless entity @s[nbt={Fire:-1s}] if entity @p[distance=..6] run function ab_classes:forge/hammer
execute as @e[type=minecraft:item,tag=ab_it_wood_slab,nbt={Item:{Count:1b}}] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:stick",Count:1b}},distance=0..1,limit=1] if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:string",Count:1b}},distance=0..1,limit=1] unless entity @s[nbt={Fire:-1s}] if entity @p[distance=..6] run function ab_classes:forge/lute
execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:iron_ingot",Count:1b}}] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:stick",Count:1b}},distance=0..1,limit=1] if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:gold_nugget",Count:2b}},distance=0..1,limit=1] unless entity @s[nbt={Fire:-1s}] if entity @p[distance=..6] run function ab_classes:forge/dagger
execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:book",Count:1b,tag:{ab_item:1b}}}] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:paper",Count:1b}},distance=0..1,limit=1] if entity @p[scores={ab_cl_warlock=1,ab_contract_1=1}] unless entity @s[nbt={Fire:-1s}] if entity @p[distance=..6] run function ab_classes:forge/contract_1
execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:book",Count:1b,tag:{ab_item:2b}}}] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:paper",Count:1b}},distance=0..1,limit=1] if entity @p[scores={ab_cl_warlock=1,ab_contract_2=1}] unless entity @s[nbt={Fire:-1s}] if entity @p[distance=..6] run function ab_classes:forge/contract_2
execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:book",Count:1b,tag:{ab_item:3b}}}] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:paper",Count:1b}},distance=0..1,limit=1] if entity @p[scores={ab_cl_warlock=1,ab_contract_3=1}] unless entity @s[nbt={Fire:-1s}] if entity @p[distance=..6] run function ab_classes:forge/contract_3
#Run expansion "tick_start" functions
function #ab_classes:tick_start
 

thisisnotaustin

New member
thisisnotaustin updated Austin's RPG Classes with a new update entry:

[2e Patch 3] Artificing Issues and a heads up on MC 1.14 Pre-Release 2

[2e Patch 3] has been released! All the in-game books have been updated to 2.3e, even the books that didn't change. The books that did change include the Enchiridion and the Artificing Parts book, both of which now list the accurate component for the Fortune enchantment (1 Rabbit's Foot). You can update these books by lighting them up with a flint and steel.

On that note, some issues with "forging" have been fixed. You can now forge items in the rain again, but it's not as...
Read the rest of this update entry...
 

Offline

New member
When I used this datapack in a server, it gave this error.
Code:
[23:23:46] [Server-Worker-1/ERROR]: Couldn't load function at ab_classes:functions/class/artificer/artifice/gear/helmet/aqua_affinity.mcfunction
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 7: Incorrect argument for command at position 100: ...y:1b}}}}] <--[HERE]
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_202]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443) [?:1.8.0_202]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_202]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_202]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_202]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_202]
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 7: Incorrect argument for command at position 100: ...y:1b}}}}] <--[HERE]
at net.minecraft.server.v1_14_R1.CustomFunction.a(CustomFunction.java:67) ~[minecraft_server.jar:git-Spigot-0c02b0c-e879c44]
at net.minecraft.server.v1_14_R1.CustomFunctionData.lambda$6(CustomFunctionData.java:159) ~[minecraft_server.jar:git-Spigot-0c02b0c-e879c44]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602) ~[?:1.8.0_202]
... 6 more
[23:23:46] [Server-Worker-1/ERROR]: Couldn't load function at ab_classes:functions/class/artificer/artifice/gear/helmet/respiration.mcfunction
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 7: Incorrect argument for command at position 98: ...n:3b}}}}] <--[HERE]
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_202]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443) [?:1.8.0_202]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_202]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_202]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_202]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_202]
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 7: Incorrect argument for command at position 98: ...n:3b}}}}] <--[HERE]
at net.minecraft.server.v1_14_R1.CustomFunction.a(CustomFunction.java:67) ~[minecraft_server.jar:git-Spigot-0c02b0c-e879c44]
at net.minecraft.server.v1_14_R1.CustomFunctionData.lambda$6(CustomFunctionData.java:159) ~[minecraft_server.jar:git-Spigot-0c02b0c-e879c44]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602) ~[?:1.8.0_202]
... 6 more
 

thisisnotaustin

New member
When I used this datapack in a server, it gave this error.
Code:
[23:23:46] [Server-Worker-1/ERROR]: Couldn't load function at ab_classes:functions/class/artificer/artifice/gear/helmet/aqua_affinity.mcfunction
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 7: Incorrect argument for command at position 100: ...y:1b}}}}] <--[HERE]
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_202]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443) [?:1.8.0_202]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_202]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_202]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_202]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_202]
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 7: Incorrect argument for command at position 100: ...y:1b}}}}] <--[HERE]
at net.minecraft.server.v1_14_R1.CustomFunction.a(CustomFunction.java:67) ~[minecraft_server.jar:git-Spigot-0c02b0c-e879c44]
at net.minecraft.server.v1_14_R1.CustomFunctionData.lambda$6(CustomFunctionData.java:159) ~[minecraft_server.jar:git-Spigot-0c02b0c-e879c44]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602) ~[?:1.8.0_202]
... 6 more
[23:23:46] [Server-Worker-1/ERROR]: Couldn't load function at ab_classes:functions/class/artificer/artifice/gear/helmet/respiration.mcfunction
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Whilst parsing command on line 7: Incorrect argument for command at position 98: ...n:3b}}}}] <--[HERE]
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_202]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) [?:1.8.0_202]
at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443) [?:1.8.0_202]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_202]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_202]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_202]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_202]
Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 7: Incorrect argument for command at position 98: ...n:3b}}}}] <--[HERE]
at net.minecraft.server.v1_14_R1.CustomFunction.a(CustomFunction.java:67) ~[minecraft_server.jar:git-Spigot-0c02b0c-e879c44]
at net.minecraft.server.v1_14_R1.CustomFunctionData.lambda$6(CustomFunctionData.java:159) ~[minecraft_server.jar:git-Spigot-0c02b0c-e879c44]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602) ~[?:1.8.0_202]
... 6 more
I'll take a look at it when I get home later
 

Jecyn

New member
Hey I love the idea here! Is there a function that can apply a class to a player who activates it? Want to make a command block(s) that removes a players class and applies a new one with a button press or something like that. Thanks!
 

Shokorana

New member
Also I think the acrobat should get speed 2 instead of speed 1 as lots of other classes have that and makes it not feel that unique
 

thisisnotaustin

New member
Hey I love the idea here! Is there a function that can apply a class to a player who activates it? Want to make a command block(s) that removes a players class and applies a new one with a button press or something like that. Thanks!
/scoreboard players set PLAYER ab_cl_acrobat 1 will make a player an Acrobat, and /scoreboard players set PLAYER ab_cl_acrobat 0 will make a player not an Acrobat. You can replace "acrobat" with any other class name (ie: ab_cl_knight, ab_cl_rogue) and it should work. For Swashbucklers, it's ab_cl_swashbuckl due to objective name length limits.

Edit: A player will technically be of a class if their objective is 1 or higher, so something like /scoreboard players set PLAYER ab_cl_acrobat 2 would also technically work. Prestige works this way, just in case I ever want to add features unique to, say, picking Ranger as your first class. As of right now, though, it's not very important.

Currently there's no way to remove all classes from a character without using /function ab_classes:class/renounce_all. You could use the execute command to run it for different players, but those players would have to be opped. I could add a debug objective that could allow moderators to remove all classes from a player if they'd like, though.
 

thisisnotaustin

New member
When you spam right click the lute it disappears.
Also I think the acrobat should get speed 2 instead of speed 1 as lots of other classes have that and makes it not feel that unique
I'll look into the Lute issue. As for the Speed II suggestion, I'll definitely consider it. You are right, Swashbucklers and Sorcerer's both get Speed iirc, so it'd be good to give Acrobat's more of an edge.
 

Shokorana

New member
I just found out this applies to quite a few things (the lute thing) It happened with my wand when i was casting spells repeatedly.
 

Shokorana

New member
Oh and, have you got / considered making a discord server?
For reporting bugs, talking about the datapack etc
 

Zorknam

New member
It says that the defuse spell doesnt use its component (Shears) but when i use the spell, my shears dissapear
 
Top