Juskittin_
-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by Juskittin_
-
-
-
On 4/25/2023 at 8:01 AM, ApexSplat said:
set {_i} ro random integer between 1 and 4 if {_i} is 1: drop 1 diamond else if {_i} is 2: drop 1 dirt else if {_i} is 3: drop 1 stone else if {_i} is 4: drop 1 gold ingotSadly, this code did not work, i will try to experiment with it but, is there anything in the code that i need to change?
-
8 hours ago, ApexSplat said:
Well the problem here is if you are really lucky, you can get all 4 items. You can set a local var to a random integer between 1 and 4 as that is the same as 25% chance for each and if it is 1 they get diamond, 2 they get dirt etc
Could you provide an example of code like that? I am really new to code and I don't really know what a "local var" is. Sorry if I'm bothering you.
-
12 hours ago, ApexSplat said:
Well for people trying to help you, it would be nice if you actually provided your code.
Yeah sorry about that, yknow how minehuts free servers are down for about a week? Yeah my code is in the folders and i do not remember it by heart i will try to type it out here though.
on right-click:
if event-block is chest:
chance 25%:
drop 1 diamond
chance 25%:
drop 1 dirt
chance 25%:
drop 1 stone
chance 25%:
drop 1 gold_ingot
-
I was making a server with loot-crate like chests where you right click one it drops a random item from a list of items and the chest disappears and respawns in the same spot after a short time, I've got the disappearing and respawning down, but i need help with the random item dropping, i tried doing it on my own but either it drops 2 different items or give you nothing. I will provide my skript and i was hoping someone could help me fix it. Thank you.
-
Hey i need help fixing a skript... I tried coding it myself but it hasn't worked what it is supposed to do is whenever I right-click a chest it give me 1 item out of a selection of items but whenever I try, either it doesn't give me anything or it give me two different items. If you could help me fix this that would be great thank you so much. Here is the skript.
on right-click:
if event-block is chest:
chance of 30%:
execute console command "/give %player% diamond 1"
chance of 13%:
execute console command "/give %player% iron_axe 1"
chance of 20%:
execute console command "/give %player% iron_boots 1"
chance of 20%:
execute console command "/give %player% iron_helmet 1"
chance of 7%:
execute console command "/give %player% diamond_chestplate 1"
chance of 10%:
execute console command "/give %player% diamond_leggings 1" -
When i joined Minehut today about after 7 months of not playing i had noticed that i was still a VIP, but when i tried advertising my server the color codes were not working and i could not use /elytra i do not know if they removed those features from VIP or not, but i could still fly and had the chat tag, when i checked my profile it said my rank was default please someone help me fix this And when i asked other players about it they said that it showed me as a VIP. Also on the tablist it had showed me as a VIP, thank you, -Juskittin.


-




The ad was "WIP &bNew box server that needs testers please join"
Could someone help me fix a skript?
in Discussion
Posted
Oh, I fixed that but when i tried to do it it did not work at first it gave you something every time you right-click something and now ive tried to fix it it it dosent give you anything. Here's the exact code.