-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
166 lines (146 loc) · 7.63 KB
/
Copy pathindex.html
File metadata and controls
166 lines (146 loc) · 7.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bedrock Fluid Generator</title>
<!-- Libraries -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/mdbassit/Coloris@latest/dist/coloris.min.css" />
<script src="https://cdn.jsdelivr.net/gh/mdbassit/Coloris@latest/dist/coloris.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uuid/8.3.2/uuid.min.js"></script>
<!-- Custom Styles -->
<style>
:root {
--bs-body-bg: #1a1a1a;
--bs-dark-rgb: 43, 48, 53;
}
.form-label {
font-weight: 500;
}
.form-text {
font-size: 0.875em;
}
#statusMessage {
font-weight: 500;
}
</style>
</head>
<body>
<div class="container py-5">
<header class="text-center mb-5">
<h1>Bedrock Fluid Generator</h1>
<p class="lead text-muted">Create custom fluid packs for Minecraft Bedrock Edition</p>
</header>
<form id="fluidForm" onsubmit="return false;">
<div class="row justify-content-center">
<div class="col-lg-8">
<h3 class="mb-4">Fluid Properties</h3>
<div class="mb-3">
<label for="fluidName" class="form-label">Fluid Name</label>
<input type="text" class="form-control" id="fluidName" placeholder="e.g., Liquid Bismuth" required />
</div>
<div class="mb-3">
<label for="fluidID" class="form-label">Block ID</label>
<input type="text" class="form-control" id="fluidID" placeholder="namespace:id (e.g., lum:bismuth)" required pattern="[a-z_]+:[a-z_]+" />
<div class="form-text">Must be in the format `namespace:identifier`.</div>
</div>
<div class="row mb-3">
<div class="col-md-6">
<label for="lightLevel" class="form-label">Light Level (0-15)</label>
<input type="number" class="form-control" id="lightLevel" value="0" min="0" max="15">
</div>
<div class="col-md-6">
<label for="tickDelay" class="form-label">Flow Speed (Tick Delay)</label>
<input type="number" class="form-control" id="tickDelay" value="5" min="1" max="100">
<div class="form-text">Higher is slower. (Water=5, Lava=30).</div>
</div>
</div>
<div class="row mb-3">
<div class="col-md-6">
<label for="buoyancy" class="form-label">Buoyancy</label>
<input type="number" class="form-control" id="buoyancy" step="0.01" value="0.03" />
</div>
<div class="col-md-6">
<label for="damage" class="form-label">Damage Per Tick</label>
<input type="number" class="form-control" id="damage" step="1" value="0" />
</div>
</div>
<div class="row mb-3">
<div class="col-md-6">
<label for="effect" class="form-label">Status Effect</label>
<select id="effect" class="form-select">
<option value="">None</option>
<option value="poison">Poison</option>
<option value="wither">Wither</option>
<option value="slowness">Slowness</option>
<option value="weakness">Weakness</option>
</select>
</div>
<div class="col-md-6">
<label for="fogColor" class="form-label">Fog Color</label>
<input type="text" class="form-control" id="fogColor" data-coloris value="#777777" />
</div>
</div>
<div class="form-check form-switch mb-2">
<input class="form-check-input" type="checkbox" id="burnsEntities">
<label class="form-check-label" for="burnsEntities">Burns Entities</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="supportsBoats" checked>
<label class="form-check-label" for="supportsBoats">Supports Boats</label>
</div>
<hr class="my-4">
<h3 class="mb-4">Textures & Icon</h3>
<div class="mb-3">
<label for="texture" class="form-label">Still Fluid Texture</label>
<input type="file" class="form-control" id="texture" accept="image/png" required />
</div>
<div class="mb-3">
<label for="flowingTexture" class="form-label">Flowing Fluid Texture</label>
<input type="file" class="form-control" id="flowingTexture" accept="image/png" />
</div>
<div class="mb-3">
<label for="bucketTexture" class="form-label">Bucket Texture</label>
<input type="file" class="form-control" id="bucketTexture" accept="image/png" required />
</div>
<div class="mb-3">
<label for="packIcon" class="form-label">Pack Icon</label>
<input type="file" class="form-control" id="packIcon" accept="image/png" />
</div>
</div>
</div>
<div class="text-center mt-5">
<button type="button" id="generateButton" class="btn btn-primary btn-lg">
<span class="spinner-border spinner-border-sm d-none" role="status" aria-hidden="true"></span>
Generate Fluid Pack
</button>
<div class="status mt-3" id="statusMessage"></div>
</div>
</form>
</div>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- All generator logic must be loaded before the main script -->
<script src="js/generator.js"></script>
<script src="js/fog_generator.js"></script>
<script src="js/bucket_generator.js"></script>
<script src="js/dummy_entity_generator.js"></script>
<script src="js/geometry_generator.js"></script>
<!-- The main script that uses the functions from the files above -->
<!-- NOTE: This is NOT a module, so it can run from a local file -->
<script src="js/main.js"></script>
<script>
// Initialize Coloris
Coloris({
el: '[data-coloris]',
themeMode: 'dark',
swatches: [
'#264653','#2a9d8f','#e9c46a','#f4a261','#e76f51',
'#d62828','#023e8a','#0077b6','#0096c7','#00b4d8','#48cae4',
],
});
</script>
</body>
</html>