Skip to content

Commit

Permalink
Fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Seeloewen committed Apr 18, 2024
1 parent 9f46256 commit cea960b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
Expand Up @@ -42,38 +42,38 @@ execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGi

#Give 1 random item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 1 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 1
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 1

#Give 2 different items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 2 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 2 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 2 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 2
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 2 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 2

#Give 2 same items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 2 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/02sameitems
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 2 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 2
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 2 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 2

#Give 3 different items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 3 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 3 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 3 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 3 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 3
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 3 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 3

#Give 3 same items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 3 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/03sameitems
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 3 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 3
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 3 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 3

#Give 5 different items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 5
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 5

#Give 5 same items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/05sameitems
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 5
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 4 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 5

#Give 10 different items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
Expand All @@ -86,11 +86,11 @@ execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGi
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 10
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 10

#Give 10 same items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/10sameitems
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 10
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 5 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 10

#Give 32 different items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
Expand Down Expand Up @@ -125,11 +125,11 @@ execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGi
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 32
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 32

#Give 32 same items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/32sameitems
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 32
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 6 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 32

#Give 64 different items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
Expand Down Expand Up @@ -196,11 +196,11 @@ execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGi
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/01item
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 64
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 64

#Give 64 same items
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/64sameitems
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @a rig_RandomItemsReceived 64
execute as @a if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 7 if score RandomItemGiver rig_ItemGiveType matches 1 if score RandomItemGiver rig_GiveItems matches 2 run execute if score @s rig_CanGetItems matches 2 run scoreboard players add @s rig_RandomItemsReceived 64

#Give random amount of different items between 1 to 64
execute if score RandomItemGiver rig_GiveItemNow matches 1 if score RandomItemGiver rig_ItemGiveAmount matches 8 if score RandomItemGiver rig_ItemGiveType matches 2 if score RandomItemGiver rig_GiveItems matches 2 run function randomitemgiver:give_items/randomdifferentitems
Expand Down

0 comments on commit cea960b

Please sign in to comment.