How to Multiply Amount Given With a Variable

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

IAmSpade

Supporter
Oct 8, 2022
7
0
1
spade.monster
  1. Script Version 2.6.2
  2. Script Author: IAmSpade
  3. Minecraft Version:1.18.1
  4. Full Code:

  5. on block break:
    if player's tool is hoe:
    if event-block is ripe wheat plant:
    set event-block to freshly planted wheat plant
    give {multi}*1 wheat to player
    wait 3 seconds
    set event-block to ripe wheat plant
    add 1 to {cfarm}


  6. Errors on Reload:
  7. {multi}*wheat can't be added to the player because the former is neither an item type nor an experience point.


  8. Other Useful Info:
  9. im trying to get the multi to multiply the amount of wheat i get by farming however it doesn't seem to accept variables as numbers while if i were to put just 1 inside it would work perfectly the multi is increasing with the players advancement and needs to be a variable i think.
  10. Addons using (including versions):
  11. skRayFall 1.9.2
  12. Troubleshooting:
 
Status
Not open for further replies.