#How do i use skbee

1 messages · Page 1 of 1 (latest)

olive ravine
#

I tried making a shaped crafting recipe that i learned from a video back in 1.17.1 skript but it doesnt work but i didnt think it changed at all

#

code:

on load:
  register new shaped recipe for gold sword of unbreaking 4 named "&6&lDashing Sword" using air, air, air, air, string, air, air, air, air
glossy gyro
#

you forgot the ID

olive ravine
#

wdym

glossy gyro
#

all recipies must have an ID at the end

olive ravine
#

oh

#

i think ik how to do that

#

1 sec

glossy gyro
#

as for "How do i use skbee"
you could always check the docs or the skbee wiki

olive ravine
#
on load:
  register new shaped recipe for gold sword of unbreaking 4 named "&6&lDashing Sword" using air, air, air, air, string, air, air, air, air with id "dashing_sword"
#

?

#

i just wanted to know how to do the crafting recipe

#

ima test that

#

omg it worked

#

les go

glossy gyro
olive ravine
#

wait

#

how to i use items ive made with skbees recipes and put it into another recipe

#

?

#

like if i made smth like

#

9 gold blocks is 1 enchanted gold

#

then

#

9 enchanted gold (custom skbee recipe) turns into compressed gold

#

smth like that

#

@glossy gyro

glossy gyro
#

set the item to a variable

#

and dont ping me please

olive ravine
#

sorry

#

idk how to do that

glossy gyro
olive ravine
#

could this work?

#
Variables:
     {couldown.%player%} = 5
     {_fragment} 1 gold ingot of infinity 1 named "&6Sword Fragment"
 
#--------------------------------------------------------------------------------------------------
#                                        EVENT
#--------------------------------------------------------------------------------------------------
on rightclick:
    if {couldown.%player%} is equal to 5:
        "%name of players's tool%" contains "&6&lDashing":
            push player forwards with force 1.5
            push player upward with force 0.5
            loop 5 times:
                send action bar "&cCouldown until another dash = %{couldown.%player%}%" to player
                subtract 1 from {couldown.%player%}
                wait 1 second
        else:
            stop
    else:
        stop
    set {couldown.%player%} to 5
    send action bar "&a&lDash ready" to player
 
command /tester:
    permission: op
    trigger:
        launch ball large coloured red, purple and white fading to light green and black at player's location with duration 1
        send title "&8&lCongrats" with subtitle "&bNow you are a tester" to player for 5 seconds
        give a gold sword of unbreaking 4 named "&6&lDashing sword" with lore "&eSword of &6Dashing." to player

#--------------------------------------------------------------------------#

on load:
  register new shaped recipe for gold sword of unbreaking 4 named "&6&lDashing Sword" using air, dashing_fragment, air, lodestone, {_fragment}, lodestone, air, stick, air with id "dashing_sword2"
  
  #------------------------------------------------------------------------#
  
on load:
  register new shaped recipe for gold ingot of infinity 1 named "&6Sword Fragment" using air, gold block, air, gold block, echo shard, gold block, air, gold block, air with id "dashing_fragment"
#

main parts i mean are here

#

Variables:
{couldown.%player%} = 5
{_fragment} 1 gold ingot of infinity 1 named "&6Sword Fragment"

#

|
on load:
register new shaped recipe for gold sword of unbreaking 4 named "&6&lDashing Sword" using air, dashing_fragment, air, lodestone, {_fragment}, lodestone, air, stick, air with id "dashing_sword2"

#------------------------------------------------------------------------#

on load:
register new shaped recipe for gold ingot of infinity 1 named "&6Sword Fragment" using air, gold block, air, gold block, echo shard, gold block, air, gold block, air with id "dashing_fragment"

#

wait

glossy gyro
#
  1. send a snippet
  2. use lists
  • dont name the variable just "cooldown", add an index or something so you know what the cooldown is for.
#
  1. why do you have 2 on load events
olive ravine
#

oh

#

the cooldown one works ok

#

the otherone is the one that doesnt work

#

whats a snippet?

#

picture?

glossy gyro
#

and you have a franken condition

#

either "if" and ":", or neither

olive ravine
#

im so confused

glossy gyro
#
  #code``````a = b
#code``` are acceptable

```a = b:
  #code``` is not
glossy gyro
olive ravine
#

what is the #code there

#

is it the start of the on rightclick:

glossy gyro
#

no, just an example placeholder

olive ravine
#

oh

glossy gyro
#

when you have a condition/if statement, you either use "if", ":", and indent, or none.
all or none.

olive ravine
#

so i can do if {_fragment}: = "dashing_fragment"

glossy gyro
#

need the colon

olive ravine
#

there?

#

or somewhere else the colon

#

o

#

wait

#

if: {_fragment} = "dashing_fragment"

#

or

#

if {_fragment} = "dashing_fragment":

glossy gyro
#

bottom

#

then you indent the stuff in that section

olive ravine
#

is the only error

#

its the recipe part

#

current code

#
Variables:
     {couldown.%player%} = 5
     if: {_fragment} = "dashing_fragment"
 
#--------------------------------------------------------------------------------------------------
#                                        EVENT
#--------------------------------------------------------------------------------------------------
on rightclick:
    if {couldown.%player%} is equal to 5:
        "%name of players's tool%" contains "&6&lDashing":
            push player forwards with force 1.5
            push player upward with force 0.5
            loop 5 times:
                send action bar "&cCouldown until another dash = %{couldown.%player%}%" to player
                subtract 1 from {couldown.%player%}
                wait 1 second
        else:
            stop
    else:
        stop
    set {couldown.%player%} to 5
    send action bar "&a&lDash ready" to player
 
command /tester:
    permission: op
    trigger:
        launch ball large coloured red, purple and white fading to light green and black at player's location with duration 1
        send title "&8&lCongrats" with subtitle "&bNow you are a tester" to player for 5 seconds
        give a gold sword of unbreaking 4 named "&6&lDashing sword" with lore "&eSword of &6Dashing." to player

#--------------------------------------------------------------------------#

on load:
  register new shaped recipe for gold sword of unbreaking 4 named "&6&lDashing Sword" using air, dashing_fragment, air, lodestone, {_fragment}, lodestone, air, stick, air with id "dashing_sword"
  
  register new shaped recipe for gold ingot of infinity 1 named "&6Sword Fragment" using air, gold block, air, gold block, echo shard, gold block, air, gold block, air with id "dashing_fragment"
glossy gyro
#

well yeah

#

you cant input some random thing and expect skript to understand it

olive ravine
#

fair

#

but idk how to make it understand

#

its like quick english

#

when it loads to on load

glossy gyro
#

skript doesnt recognise dashing_fragment as an item.
set the item to a variable, or use parentheses and put the value in

olive ravine
#

if: {_fragment} = "dashing_fragment"

glossy gyro
#

thats a local var

olive ravine
#

idk how to do it

#

can you pls do it

glossy gyro
#

i wont spoon feed you

olive ravine
#

ik

#

im trying my best brooo

glossy gyro
glossy gyro
#

thats how you learn

olive ravine
#
  register new shaped recipe for gold ingot of infinity 1 named "&6Sword Fragment" using air, gold block, air, gold block, echo shard, gold block, air, gold block, air with id "dashing_fragment"
#

heretoo?

#

remove the _ here too

#

or

#

just the top

#

oh

#

wait

#

OHHHH

glossy gyro
#

thats not a variable..

olive ravine
#

I GET IT

glossy gyro
#

thats just the id you assinged to the recipe, you can name it whatever you want

olive ravine
#
Variables:
     {couldown.%player%} = 5
     if: {fragment} = "dashing_fragment"
 
#--------------------------------------------------------------------------------------------------
#                                        EVENT
#--------------------------------------------------------------------------------------------------
on rightclick:
    if {couldown.%player%} is equal to 5:
        "%name of players's tool%" contains "&6&lDashing":
            push player forwards with force 1.5
            push player upward with force 0.5
            loop 5 times:
                send action bar "&cCouldown until another dash = %{couldown.%player%}%" to player
                subtract 1 from {couldown.%player%}
                wait 1 second
        else:
            stop
    else:
        stop
    set {couldown.%player%} to 5
    send action bar "&a&lDash ready" to player
 
command /tester:
    permission: op
    trigger:
        launch ball large coloured red, purple and white fading to light green and black at player's location with duration 1
        send title "&8&lCongrats" with subtitle "&bNow you are a tester" to player for 5 seconds
        give a gold sword of unbreaking 4 named "&6&lDashing sword" with lore "&eSword of &6Dashing." to player

#--------------------------------------------------------------------------#

on load:
  register new shaped recipe for gold sword of unbreaking 4 named "&6&lDashing Sword" using air, dashing_fragment, air, lodestone, {fragment}, lodestone, air, stick, air with id "dashing_sword"
  
  register new shaped recipe for gold ingot of infinity 1 named "&6Sword Fragment" using air, gold block, air, gold block, echo shard, gold block, air, gold block, air with id "dashing_fragment"

is this better?

#

idk what im doing

glossy gyro
olive ravine
#

i read the first bit of it

#

like i clicked to the next section 3 times

#

i read that part

left ginkgo
#

cooldown*

#

not couldown

olive ravine
#

misspell

#

that doesnt matter though because its a custom named variable instead of a thing

#

like gold sword

#

right?

left ginkgo
#

Yes, but you wrote it in a send

#

it just looks better if you have proper spelling

#

oop

olive ravine
#

oh

#

you right

#

mbm

#

mbmb

#

i fixed it

#

ty

#

but i still dont know how to the recipe

#

can somebody just tell me how to do it

#

i think ill learn better if i just got told what im doing wrong

#

i feel like im close

glossy gyro
#

youre not putting the variable in the ingredients

#

skript has no idea what you are trying to do

olive ravine
#

how do i name the variable correctly for it to understand?

#

do i put it there without the brackets?

glossy gyro
#

you need to either

  • use a variable: ... using diamond, iron ingot, {superSword}, potato, ...
  • use the long form (with parentheses!): ... using diamond, iron ingot, (unbreakable diamond sword named "Super Sword"), potato, ...
glossy gyro
olive ravine
#

{ or (

#

im using {

left ginkgo
#

{

olive ravine
#

ok

#

i still dont get what im doing wrong

glossy gyro
olive ravine
#

{something)

#

?

glossy gyro
#

no

olive ravine
#

idk what a parenthesis is

left ginkgo
#

This is curly bracket --> {
This is square bracket --> [
This is a parenthesis --> (

olive ravine
#

] ) } >

#

oh

left ginkgo
#

This is an angle bracket --> <

glossy gyro
# olive ravine { or (

in this message, the symbol to the left of "or" is curly brace, to the right is parentheses.
variables use curly braces

olive ravine
#

so it is {something)

glossy gyro
#

no

left ginkgo
#

I still can't spell parentheses right without searching it

glossy gyro
olive ravine
#

your saying

#

left is {

#

right is )

#

yes?

olive ravine
#

oh

glossy gyro
olive ravine
#

i mean

#

meant*

#

this or that

#

not literally or

glossy gyro
#

the left one

olive ravine
#

in code

glossy gyro
#

{

olive ravine
#

yes

glossy gyro
#

always { and } around variables

olive ravine
#

ok can you tell me what im doing wrong

#

please

olive ravine
#

oh

#

wait

olive ravine
#

wait aminute

#

i can just do

#

instead of a variable

#

i can do

#

air, air, (unbreakable gold sword named "&6&lDashing Sword" with lore "&eSword of &6Dashing.") air, air,

#

that works?

#

air, air, (unbreakable gold sword named "&6&lDashing Sword" with lore "&eSword of &6Dashing."), air, air,

#

i mean

#

forgot the comma after the msg

#

wait

#

i mean

#

omg im an idiot lemme try this again

#

air, air, (gold ingot named "&6Sword Fragment"), air, air,

#

thats what i meant

#

nvm it didnt work

#

wdym

glossy gyro
#

looks like it

olive ravine
#

i tried it and it didnt

#

work

#

ill send the error

glossy gyro
olive ravine
#

oh

#

it worked

#

thank you so muc

ancient light
#

if you continue having too many issues with custom crafting recipes, CraftEnhance has proven to be pretty reliable to me, it's very easy to use and is good at using it's own custom items inside other recipes