#I'm looking to make something like fairy souls from hypixel skyblock
1 messages · Page 1 of 1 (latest)
add the block to a list
^
what do I put for the block in the list
you can also use on right-click on bone block:
on load:
add .. to {fossils::*}
yup
what do i put in the ..?
don't do it on load?
its location maybe
you can add it when you (the admin) place it, or on load
then just check if that list contains the block
the coordinates?
this is a list of all blocks to find, not blocks they have found
or if the block is unique you can just add it on rightclick
i mean I could do that to take an easy way out but then it would be hard for the player to tell whats a collectible andwhats not
on load: add location of bone block to {fossils::*} ?
if a specific block is only ever used as a collectible, how would that make it hard to tell what's collectible?
like if bone blocks are only ever used as collectibles
not as building blocks
nvm i read what you said wrong
oh okay
on rightclick: event-block is bone block add location of to {fossils::*} add 1 to {fossil::%player's uuid%} broadcast {fossils::*}
what do I put inside locatiom
i put event-block
on rightclick: event-block is bone block add location of event-block to {fossils::*} add 1 to {fossil::%player's uuid%} broadcast {fossils::*} broadcast {fossil::%player's uuid%}
is {fossils::*} a list of
- all possible bone blocks to find
or - all bone blocks found by that player
this appears to be working but how do I make the player unable to right click the same block twice
all possible bone blocks
so then it shouldnt be on right-vlivk:
Check if event-block isnt in fossils list
thats a list of all blocks, not the ones the player has found
so create another list for ones the player has found
okay
on right-click on bone block: add location of event-block to {fossils::*} add location of event-block to {foundfossils::*} add 1 to {fossil::%player's uuid%} broadcast {fossils::*} broadcast {fossil::%player's uuid%}
well problem is
Foundfossils will apply to everyone
Also ur not checking if player found the fossil already
okay
- code blocks are 3 backticks, not 1. ```code here```
- You don't want to add to
{fossils::*}there. - the
{foundfossils::*}list is not player specific
okay
you'd want another index; {foundFossils::%player's UUID%::*}
{fossils::*} contains location of event-block
add location of event-block to {foundfossils::%player's uuid%::*}
add 1 to {fossil::%player's uuid%}
broadcast {fossils::*}
broadcast {fossil::%player's uuid%}```
you need the ::* on line 3, that makes it a list
like that?
closer
but you're still adding to {fossils::*}, which means every block that is clicked will become a fossil
(and blocks that are already fossils will be added to the list again)
how would I stop that?
you should just be checking if {fossils::*} contains location of event-block
alr
if {fossils::*} contains location of event-block
add location of event-block to {foundfossils::%player's uuid%::*}
add 1 to {fossil::%player's uuid%}
broadcast {fossils::*}
broadcast {fossil::%player's uuid%}```
how would I then add the locations to the list {fossils::*}
line 2 needs a colon at the end and you have to indent after it
or you can delete the if at the front
do that when you place them/set them up